summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.sh
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-04-19 16:23:35 +0200
committerunknown <msvensson@neptunus.(none)>2006-04-19 16:23:35 +0200
commitf2ad5332f3ad604ccdaa8050a90387a86d3c7a70 (patch)
treef75be714bd2da506500087b90f08b87cd51ca835 /mysql-test/mysql-test-run.sh
parentfb62bcb0021b1ac7425e3ddfc41d6458e1f76aac (diff)
downloadmariadb-git-f2ad5332f3ad604ccdaa8050a90387a86d3c7a70.tar.gz
Bug#19190 syntax error in mysql-test/mysql-test-run.sh script
mysql-test/mysql-test-run.sh: Use 'test', not '[' as the shell builtin might not have '-L
Diffstat (limited to 'mysql-test/mysql-test-run.sh')
-rw-r--r--mysql-test/mysql-test-run.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh
index d7e976f9d49..e3a3e3334e4 100644
--- a/mysql-test/mysql-test-run.sh
+++ b/mysql-test/mysql-test-run.sh
@@ -631,7 +631,9 @@ fi
[ -d $MYSQL_TEST_DIR/var/tmp ] || mkdir $MYSQL_TEST_DIR/var/tmp
[ -d $MYSQL_TEST_DIR/var/run ] || mkdir $MYSQL_TEST_DIR/var/run
[ -d $MYSQL_TEST_DIR/var/log ] || mkdir $MYSQL_TEST_DIR/var/log
-if ! test -L $MYSQL_TEST_DIR/var/std_data_ln ; then
+
+# Use 'test', not '[' as the shell builtin might not have '-L
+if test ! -L "$MYSQL_TEST_DIR/var/std_data_ln" ; then
ln -s $MYSQL_TEST_DIR/std_data/ $MYSQL_TEST_DIR/var/std_data_ln
fi