r3115 - jhalfs/trunk/common

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Thu Sep 14 05:52:27 PDT 2006


Author: georgeb
Date: 2006-09-14 06:52:26 -0600 (Thu, 14 Sep 2006)
New Revision: 3115

Modified:
   jhalfs/trunk/common/progress_bar.sh
Log:
Reduce string length to prevent wraparound if package build time exceeds 99 minutes.

Modified: jhalfs/trunk/common/progress_bar.sh
===================================================================
--- jhalfs/trunk/common/progress_bar.sh	2006-09-14 04:01:26 UTC (rev 3114)
+++ jhalfs/trunk/common/progress_bar.sh	2006-09-14 12:52:26 UTC (rev 3115)
@@ -16,6 +16,8 @@
 declare -r  FRAME_OPEN=${CSI}$'2G['
 declare -r  FRAME_CLOSE=${CSI}$'63G]'
 declare -r  TS_POSITION=${CSI}$'65G'
+declare -r  LINE_WRAP_OFF=${CSI}$'?7l'
+declare -r  LINE_WRAP_ON=${CSI}$'?7h'
 declare -a  RESET_LINE=${CURSOR_OFF}${ERASE_LINE}${FRAME_OPEN}${FRAME_CLOSE}
 
 declare -a  GRAPHIC_STR="| / - \\ + "
@@ -54,7 +56,7 @@
     (( PREV_SEC = SEC ))
 
       # Display the accumulated time. div minutes.. modulo seconds.
-    write_or_exit "${TS_POSITION}$(($SECONDS / 60)) min. $SEC sec. "
+    write_or_exit "${TS_POSITION}$(($SECONDS / 60)) min. $SEC sec"
 done
 
 exit




More information about the alfs-log mailing list