Portability fix (avoid bash-ism).
This commit is contained in:
parent
8e238f22b7
commit
1314c4aaee
@ -87,10 +87,12 @@ parse_arguments() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
wait_for_pid () {
|
wait_for_pid () {
|
||||||
for((i=0; i<35; i++)); do
|
i=0
|
||||||
|
while test $i -lt 35 ; do
|
||||||
sleep 1
|
sleep 1
|
||||||
test -s $pid_file && i='' && break
|
test -s $pid_file && i='' && break
|
||||||
echo $echo_n ".$echo_c"
|
echo $echo_n ".$echo_c"
|
||||||
|
i=`expr $i + 1`
|
||||||
done
|
done
|
||||||
|
|
||||||
if test -z "$i" ; then
|
if test -z "$i" ; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user