From fb63ddff148e5ae1fc2f5cb8aca3debbd17616e2 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Wed, 1 Nov 2017 14:39:34 +0000 Subject: [PATCH] No need for $() in if command --- common/common-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/common-functions b/common/common-functions index 9802192..6656aca 100644 --- a/common/common-functions +++ b/common/common-functions @@ -49,7 +49,7 @@ clean_builddir() { # # 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