summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorunknown <patg@krsna.patg.net>2005-09-26 18:51:27 -0700
committerunknown <patg@krsna.patg.net>2005-09-26 18:51:27 -0700
commit7a19e76c549384a0149ba15079ffe72209441414 (patch)
tree129188bb9a4c9a98057887488b43a1c9158291d8 /BUILD
parentad8ff14165ed656aee697b49eac6c7e8cb5a5c00 (diff)
downloadmariadb-git-7a19e76c549384a0149ba15079ffe72209441414.tar.gz
BUG #13511
Fixed SETUP.sh to not overwrite prefix_configs, making 'make install' install in "/" BUILD/SETUP.sh: BUG #13511 test -n is for testing if a FILE is zero length! Plus, if the value is zero, we don't want to set it to that value, we want to leave it as it was already set. We _want_ to set it _if_ it is _not_ zero. Changed to "! -z", which is for testing strings.
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/SETUP.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh
index 4c8a8839bdf..c86687bf03b 100755
--- a/BUILD/SETUP.sh
+++ b/BUILD/SETUP.sh
@@ -10,7 +10,7 @@ prefix_configs="--prefix=/usr/local/mysql"
just_print=
just_configure=
full_debug=
-if test -n $MYSQL_BUILD_PREFIX
+if test ! -z $MYSQL_BUILD_PREFIX
then
prefix_configs="--prefix=$MYSQL_BUILD_PREFIX"
fi