r3565 - jhalfs/trunk/common

pierre at linuxfromscratch.org pierre at linuxfromscratch.org
Wed Feb 22 02:18:09 PST 2012


Author: pierre
Date: 2012-02-22 03:18:02 -0700 (Wed, 22 Feb 2012)
New Revision: 3565

Modified:
   jhalfs/trunk/common/common-functions
Log:
Fix a warning when $BUILDDIR/sources is empty and "Rebuild files" is done

Modified: jhalfs/trunk/common/common-functions
===================================================================
--- jhalfs/trunk/common/common-functions	2012-02-22 09:18:56 UTC (rev 3564)
+++ jhalfs/trunk/common/common-functions	2012-02-22 10:18:02 UTC (rev 3565)
@@ -77,7 +77,7 @@
       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




More information about the alfs-log mailing list