Commit f9501393 authored by lenz@kallisto.local's avatar lenz@kallisto.local

- better test for a string to avoid "test: integer expression expected"

   if a variable is not defined (empty).
parent 492ecc54
...@@ -128,7 +128,7 @@ fi ...@@ -128,7 +128,7 @@ fi
if test ! -x $mysqld if test ! -x $mysqld
then then
if test "$in_rpm" -eq 1 if test "$in_rpm" = 1
then then
echo "FATAL ERROR $mysqld not found!" echo "FATAL ERROR $mysqld not found!"
exit 1 exit 1
...@@ -167,7 +167,7 @@ then ...@@ -167,7 +167,7 @@ then
fi fi
fi fi
if test "$ip_only" -eq 1 if test "$ip_only" = 1
then then
ip=`echo "$resolved" | awk '/ /{print $6}'` ip=`echo "$resolved" | awk '/ /{print $6}'`
hostname=$ip hostname=$ip
...@@ -187,7 +187,7 @@ then ...@@ -187,7 +187,7 @@ then
c_d="yes" c_d="yes"
fi fi
if test $verbose -eq 1 if test $verbose = 1
then then
create_option="verbose" create_option="verbose"
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment