diff options
author | unknown <lenz@kallisto.local> | 2003-09-27 00:25:57 +0200 |
---|---|---|
committer | unknown <lenz@kallisto.local> | 2003-09-27 00:25:57 +0200 |
commit | 223716f35ddad3d3ec1509c34c5d8bc731e1367d (patch) | |
tree | 672c92d537e5ea79723d174529ddf1f4da9a1140 /scripts/mysql_install_db.sh | |
parent | f0cb432fd33dd67dd22504c5f740a475de518357 (diff) | |
download | mariadb-git-223716f35ddad3d3ec1509c34c5d8bc731e1367d.tar.gz |
- better test for a string to avoid "test: integer expression expected"
if a variable is not defined (empty).
Diffstat (limited to 'scripts/mysql_install_db.sh')
-rw-r--r-- | scripts/mysql_install_db.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh index 09a720f273d..65731c2bcb7 100644 --- a/scripts/mysql_install_db.sh +++ b/scripts/mysql_install_db.sh @@ -128,7 +128,7 @@ fi if test ! -x $mysqld then - if test "$in_rpm" -eq 1 + if test "$in_rpm" = 1 then echo "FATAL ERROR $mysqld not found!" exit 1 @@ -167,7 +167,7 @@ then fi fi -if test "$ip_only" -eq 1 +if test "$ip_only" = 1 then ip=`echo "$resolved" | awk '/ /{print $6}'` hostname=$ip @@ -187,7 +187,7 @@ then c_d="yes" fi -if test $verbose -eq 1 +if test $verbose = 1 then create_option="verbose" else |