1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Shell portability fix.

scripts/mysql_install_db.sh:
  Use "test !" instead of "! test", as the
  latter does not work on certain shells.
This commit is contained in:
unknown
2007-11-29 16:40:46 +00:00
parent e7a7957553
commit 854d0fa176

View File

@ -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
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