diff --git a/common/progress_bar.sh b/common/progress_bar.sh index ec264e5..838f573 100755 --- a/common/progress_bar.sh +++ b/common/progress_bar.sh @@ -4,10 +4,12 @@ set -e +[[ -z $1 ]] && exit +[[ -z $2 ]] && exit + if [ ! -f $1 ] ; then - echo -n "." - sleep 1 - if [ -d /proc/$2 ] ; then - ./$0 $1 $2 - fi + while [ -d /proc/$2 ] ; do + echo -n "$2 " + sleep 1 + done fi