Commit 854d0fa1 authored by unknown's avatar unknown

Shell portability fix.


scripts/mysql_install_db.sh:
  Use "test !" instead of "! test", as the
  latter does not work on certain shells.
parent e7a79575
...@@ -181,14 +181,14 @@ parse_arguments PICK-ARGS-FROM-ARGV "$@" ...@@ -181,14 +181,14 @@ parse_arguments PICK-ARGS-FROM-ARGV "$@"
if test -n "$basedir" if test -n "$basedir"
then then
print_defaults=`find_in_basedir my_print_defaults bin extra` print_defaults=`find_in_basedir my_print_defaults bin extra`
if ! test -x "$print_defaults" if test ! -x "$print_defaults"
then then
missing_in_basedir my_print_defaults missing_in_basedir my_print_defaults
exit 1 exit 1
fi fi
else else
print_defaults="@bindir@/my_print_defaults" print_defaults="@bindir@/my_print_defaults"
if ! test -x "$print_defaults" if test ! -x "$print_defaults"
then then
echo "FATAL ERROR: Could not find $print_defaults" echo "FATAL ERROR: Could not find $print_defaults"
echo echo
...@@ -223,7 +223,7 @@ else ...@@ -223,7 +223,7 @@ else
exit 1 exit 1
fi fi
mysqld=`find_in_basedir mysqld libexec sbin bin` mysqld=`find_in_basedir mysqld libexec sbin bin`
if ! test -x "$mysqld" if test ! -x "$mysqld"
then then
missing_in_basedir mysqld missing_in_basedir mysqld
exit 1 exit 1
......
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