From 3d6cbf9b5f4ff09670151848e19310c0bcebc48b Mon Sep 17 00:00:00 2001 From: steve Date: Thu, 30 Nov 2006 09:29:43 +0000 Subject: [PATCH] 2006-11-30 09:29:43 by steve Fix syntax error. --- hooks/common.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/hooks/common.sh b/hooks/common.sh index 318a7ff..b064455 100644 --- a/hooks/common.sh +++ b/hooks/common.sh @@ -21,7 +21,7 @@ logMessage () message="$*" if [ ! -z "${verbose}" ]; then - echo $message + echo $message fi } @@ -38,14 +38,14 @@ assert () lineno="?" if [ -n "${LINENO}" ]; then - # our shell defines variable LINENO, great! - lineno=$1 - shift + # our shell defines variable LINENO, great! + lineno=$1 + shift fi if [ ! $* ] ; then echo "assert failed: $0:$lineno [$*]" - exit + exit fi } @@ -103,11 +103,9 @@ disableStartStopDaemon () local daemonfile="${prefix}/sbin/start-stop-daemon" mv "${daemonfile}" "${daemonfile}.REAL" - echo \ -"#!/bin/sh -echo -echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > -"${daemonfile}" + echo '#!/bin/sh' > "${daemonfile}" + echo "echo \"Warning: Fake start-stop-daemon called, doing nothing\"" >> "${daemonfile}" + chmod 755 "${daemonfile}" logMessage "Start Stop Daemon disabled off." }