r3629 - jhalfs/branches/ablfs/common

pierre at linuxfromscratch.org pierre at linuxfromscratch.org
Sat Apr 21 14:24:02 PDT 2012


Author: pierre
Date: 2012-04-21 15:23:58 -0600 (Sat, 21 Apr 2012)
New Revision: 3629

Modified:
   jhalfs/branches/ablfs/common/progress_bar.sh
Log:
Added the case when sleep is in /usr/bin to progress_bar.sh

Modified: jhalfs/branches/ablfs/common/progress_bar.sh
===================================================================
--- jhalfs/branches/ablfs/common/progress_bar.sh	2012-04-21 21:22:28 UTC (rev 3628)
+++ jhalfs/branches/ablfs/common/progress_bar.sh	2012-04-21 21:23:58 UTC (rev 3629)
@@ -3,7 +3,7 @@
 
 set -e
 
-# Be sure that we know the taget name
+# Be sure that we know the target name
 [[ -z $1 ]] && exit
 TARGET=$1  # Remember the target build we are looking for
 MAKE_PPID=$2
@@ -26,8 +26,10 @@
 # Prevent segfault on stripping phases
 if [[ "$BASHBIN" = "/tools/bin/bash" ]] ; then
   SLEEP=/tools/bin/sleep
+elif [ -x /bin/sleep ] ; then
+  SLEEP=/bin/sleep
 else
-  SLEEP=/bin/sleep
+  SLEEP=/usr/bin/sleep
 fi
 
 write_or_exit() {




More information about the alfs-log mailing list