I must work on my speling

This commit is contained in:
George Boudreau 2006-06-09 00:15:21 +00:00
parent 843c479fed
commit 7dd28eab3f

View file

@ -23,7 +23,7 @@ declare -i SEC=0 # Seconds accumulator
declare -i POS=0 # Start value for seconds/cursor position declare -i POS=0 # Start value for seconds/cursor position
write_or_exit() { write_or_exit() {
# make has been killed or failed, leave # make has been killed or failed or run to completion, leave
if ! fuser -v . 2>&1 | grep make >/dev/null ; then if ! fuser -v . 2>&1 | grep make >/dev/null ; then
echo -n "${CURSOR_ON}" && exit echo -n "${CURSOR_ON}" && exit
fi fi
@ -35,7 +35,7 @@ write_or_exit() {
echo -n "$1" echo -n "$1"
} }
# This will loop forever.. or overflow, which ever comes forst :) # This will loop forever.. or overflow, which ever comes first :)
for ((MIN=0; MIN >= 0; MIN++)); do for ((MIN=0; MIN >= 0; MIN++)); do
write_or_exit "${RESET_LINE}${TS_POSITION}${MIN} min. 0 sec. " write_or_exit "${RESET_LINE}${TS_POSITION}${MIN} min. 0 sec. "
# Count the seconds # Count the seconds
@ -44,7 +44,7 @@ for ((MIN=0; MIN >= 0; MIN++)); do
write_or_exit "${CSI}${POS}G${GRAPHIC_CHAR}" write_or_exit "${CSI}${POS}G${GRAPHIC_CHAR}"
sleep .2 sleep .2
done done
# Display then accumlated time. # Display the accumlated time.
write_or_exit "${TS_POSITION}${MIN} min. ${SEC} sec. " write_or_exit "${TS_POSITION}${MIN} min. ${SEC} sec. "
done done
done done