Fix a warning when $BUILDDIR/sources is empty and "Rebuild files" is done

This commit is contained in:
Pierre Labastie 2012-02-22 10:18:02 +00:00
parent e650dc782c
commit 8ea21f8684

View file

@ -77,7 +77,7 @@ if [ "${CLEAN}" = "y" ]; then
sudo rm -rf $JHALFSDIR
echo "done"
echo -n "Cleaning remaining extracted sources in $BUILDDIR/sources ..."
sudo rm -rf `find $BUILDDIR/sources/* -maxdepth 0 -type d`
sudo rm -rf `find $BUILDDIR/sources -maxdepth 1 -mindepth 1 -type d`
echo "done"
fi
fi