summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2003-03-11 18:54:57 +0100
committerunknown <lenz@mysql.com>2003-03-11 18:54:57 +0100
commit7f7e7220c26bad1ffda1e52453a7ab89f70fac52 (patch)
tree00e6fc32d3dc6437d52d0d7b9a1a983123387162
parent11e0756966ba7fe22bddb175682fdaaea6a5d38a (diff)
downloadmariadb-git-7f7e7220c26bad1ffda1e52453a7ab89f70fac52.tar.gz
- made test for multiple --user options more sh-compatible
-rw-r--r--scripts/safe_mysqld.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/safe_mysqld.sh b/scripts/safe_mysqld.sh
index a8ca3537cb3..6b7e16c57b0 100644
--- a/scripts/safe_mysqld.sh
+++ b/scripts/safe_mysqld.sh
@@ -34,8 +34,8 @@ parse_arguments() {
--datadir=*) DATADIR=`echo "$arg" | sed -e "s;--[^=]*=;;"` ;;
--pid-file=*) pid_file=`echo "$arg" | sed -e "s;--[^=]*=;;"` ;;
--user=*)
- if [ $SET_USER == 0 ]
- then
+ if test $SET_USER -eq 0
+ then
user=`echo "$arg" | sed -e "s;--[^=]*=;;"` ; SET_USER=1
fi
;;