From 53aa633b240a68dc619c9f9184025aefd8819b71 Mon Sep 17 00:00:00 2001 From: "lenz@mysql.com" <> Date: Wed, 3 Dec 2003 13:56:33 +0100 Subject: [PATCH] - Bugfix for the Mac OS X startup script: Suppress the annoying "$1: unbound variable" error when no option was given --- support-files/MacOSX/MySQL | 7 +++++++ 1 file changed, 7 insertions(+) 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 # +# 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