Author: pierre Date: Wed Nov 1 07:39:34 2017 New Revision: 4012 Log: No need for $() in if command
Modified: jhalfs/trunk/common/common-functions Modified: jhalfs/trunk/common/common-functions ============================================================================== --- jhalfs/trunk/common/common-functions Sat Oct 7 11:48:02 2017 (r4011) +++ jhalfs/trunk/common/common-functions Wed Nov 1 07:39:34 2017 (r4012) @@ -49,7 +49,7 @@ # Test if the clean must be done. if [ "${CLEAN}" = "y" ]; then # If empty (i.e. could contain lost+found), do not do anything - if $(ls -d $BUILDDIR/* > /dev/null 2>&1) && + if ls -d $BUILDDIR/* > /dev/null 2>&1 && [ "$(ls $BUILDDIR)" != "lost+found" ]; then # Test to make sure that the build directory was populated by jhalfs if [ ! -d $JHALFSDIR ] || [ ! -d $BUILDDIR/sources ] ; then -- http://lists.linuxfromscratch.org/listinfo/alfs-log Unsubscribe: See the above information page