Avoided recursion in progress_bar.sh.
The make PID test need be fixed yet.
This commit is contained in:
parent
1a1f099289
commit
a36805ddb1
1 changed files with 7 additions and 5 deletions
|
@ -4,10 +4,12 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
[[ -z $1 ]] && exit
|
||||||
|
[[ -z $2 ]] && exit
|
||||||
|
|
||||||
if [ ! -f $1 ] ; then
|
if [ ! -f $1 ] ; then
|
||||||
echo -n "."
|
while [ -d /proc/$2 ] ; do
|
||||||
sleep 1
|
echo -n "$2 "
|
||||||
if [ -d /proc/$2 ] ; then
|
sleep 1
|
||||||
./$0 $1 $2
|
done
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
Reference in a new issue