From 890aa5b2587f75f572fe240b5bcd2967127d5d70 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 30 Mar 2005 18:38:54 +0200 Subject: Portability fix (avoid bash-ism). support-files/mysql.server.sh: Replace a non-portable "for" loop (bash style, fails on BSD) by an equivalent "while" loop. Note that the "stop" method is still wrong, as it does not wait for file removal. --- support-files/mysql.server.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'support-files') diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh index 4283af919a5..aafd3f8f187 100644 --- a/support-files/mysql.server.sh +++ b/support-files/mysql.server.sh @@ -87,10 +87,12 @@ parse_arguments() { } wait_for_pid () { - for((i=0; i<35; i++)); do + i=0 + while test $i -lt 35 ; do sleep 1 test -s $pid_file && i='' && break echo $echo_n ".$echo_c" + i=`expr $i + 1` done if test -z "$i" ; then -- cgit v1.2.1