mirror of
https://github.com/MariaDB/server.git
synced 2025-08-09 22:24:09 +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>
|
# 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
|
# Source the common setup functions for startup scripts
|
||||||
test -r /etc/rc.common || exit 1
|
test -r /etc/rc.common || exit 1
|
||||||
. /etc/rc.common
|
. /etc/rc.common
|
||||||
|
Reference in New Issue
Block a user