mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Bugfix for the Mac OS X startup script: Suppress the annoying
"$1: unbound variable" error when no option was given
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user