From: Eric Andersen Date: Tue, 1 May 2001 16:24:32 +0000 (-0000) Subject: Another refinement, this time from Larry. X-Git-Tag: 0_52~259 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b9f5b823399c8d5d88f2976726e3fbe9cba157a3;p=oweals%2Fbusybox.git Another refinement, this time from Larry. --- diff --git a/applets/busybox.sh b/applets/busybox.sh index 26d1376a0..7c3deb20e 100755 --- a/applets/busybox.sh +++ b/applets/busybox.sh @@ -9,7 +9,7 @@ RAW=` \ | tr A-Z a-z | sort ` test "${RAW}" != "" || exit -if [ -d ${$BB_SRC_DIR:-.} ]; then cd $BB_SRC_DIR; fi +if [ -d "$BB_SRC_DIR" ]; then cd $BB_SRC_DIR; fi # By running $RAW through "ls", we avoid listing # source files that don't exist. ls $RAW 2>/dev/null | tr '\n' ' ' diff --git a/busybox.sh b/busybox.sh index 26d1376a0..7c3deb20e 100755 --- a/busybox.sh +++ b/busybox.sh @@ -9,7 +9,7 @@ RAW=` \ | tr A-Z a-z | sort ` test "${RAW}" != "" || exit -if [ -d ${$BB_SRC_DIR:-.} ]; then cd $BB_SRC_DIR; fi +if [ -d "$BB_SRC_DIR" ]; then cd $BB_SRC_DIR; fi # By running $RAW through "ls", we avoid listing # source files that don't exist. ls $RAW 2>/dev/null | tr '\n' ' '