Use more portable printf instead of echo -n
Mac OS X's /bin/sh does not support echo -n. Instead use the much more widely supported printf with a format string of just %s. Change-Id: I77ac99e7fff7432e3eaf663284e8b2950239ff88 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -349,7 +349,7 @@ fi
|
||||
##################################################
|
||||
case "$ACTION" in
|
||||
start)
|
||||
echo -n "Starting Gerrit Code Review: "
|
||||
printf '%s' "Starting Gerrit Code Review: "
|
||||
|
||||
if test 1 = "$NO_START" ; then
|
||||
echo "Not starting gerrit - NO_START=1 in /etc/default/gerrit"
|
||||
@@ -401,7 +401,7 @@ case "$ACTION" in
|
||||
;;
|
||||
|
||||
stop)
|
||||
echo -n "Stopping Gerrit Code Review: "
|
||||
printf '%s' "Stopping Gerrit Code Review: "
|
||||
|
||||
if test 1 = "$START_STOP_DAEMON" && type start-stop-daemon >/dev/null 2>&1
|
||||
then
|
||||
|
Reference in New Issue
Block a user