diff options
Diffstat (limited to 'scripts/progress-indicator')
-rwxr-xr-x | scripts/progress-indicator | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/progress-indicator b/scripts/progress-indicator new file mode 100755 index 00000000..aa263b36 --- /dev/null +++ b/scripts/progress-indicator @@ -0,0 +1,24 @@ +#!/bin/sh +# Propeller progress indicator +FRAME="A" +PID=$1 + +touch "/tmp/pi.$PID" +while [ -f "/tmp/pi.$PID" ]; +do + case $FRAME in + A) echo -n -e "\b" + echo -n '|' + FRAME=B;; + B) echo -n -e "\b" + echo -n '/' + FRAME=C;; + C) echo -n -e "\b" + echo -n '-' + FRAME=D;; + D) echo -n -e "\b" + echo -n '\' + FRAME=A;; + esac + sleep 1 +done |