summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2003-12-03 13:56:33 +0100
committerunknown <lenz@mysql.com>2003-12-03 13:56:33 +0100
commit930f94bf174b183a618591f6a40b3dc75b26dae0 (patch)
treed81626cd3403c94106ae8270d5b4476f691ab0c2 /support-files
parente8fc6d460c379bbb7b5b4b75e9919ea226a62a43 (diff)
downloadmariadb-git-930f94bf174b183a618591f6a40b3dc75b26dae0.tar.gz
- Bugfix for the Mac OS X startup script: Suppress the annoying
"$1: unbound variable" error when no option was given support-files/MacOSX/MySQL: - Suppress the annoying "$1: unbound variable" error when no option was given
Diffstat (limited to 'support-files')
-rwxr-xr-xsupport-files/MacOSX/MySQL7
1 files changed, 7 insertions, 0 deletions
diff --git a/support-files/MacOSX/MySQL b/support-files/MacOSX/MySQL
index dfba5f8f982..f6579700384 100755
--- a/support-files/MacOSX/MySQL
+++ b/support-files/MacOSX/MySQL
@@ -11,6 +11,13 @@
# Written by Lenz Grimmer <lenz@mysql.com>
#
+# Suppress the annoying "$1: unbound variable" error when no option
+# was given
+if [ -z $1 ] ; then
+ echo "Usage: $0 [start|stop|restart] "
+ exit 1
+fi
+
# Source the common setup functions for startup scripts
test -r /etc/rc.common || exit 1
. /etc/rc.common