From: Martin Schwenke Date: Wed, 6 Jul 2016 05:22:19 +0000 (+1000) Subject: ctdb-scripts: Avoid shellcheck warning SC2016 ($ in single quotes) X-Git-Tag: tdb-1.3.10~275 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ea90f61700fad678d6c5166d0f9fff4267f45f9;p=thirdparty%2Fsamba.git ctdb-scripts: Avoid shellcheck warning SC2016 ($ in single quotes) SC2016: Expressions don't expand in single quotes, use double quotes for that. Error messages are now arguably more readable. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/config/functions b/ctdb/config/functions index ac4212e3fad..251779d8949 100755 --- a/ctdb/config/functions +++ b/ctdb/config/functions @@ -1027,7 +1027,7 @@ ctdb_start_stop_service () die 'service-start event not permitted when service is managed' fi if [ "$CTDB_SERVICE_AUTOSTARTSTOP" = "yes" ] ; then - die 'service-start event not permitted with $CTDB_SERVICE_AUTOSTARTSTOP = yes' + die 'service-start event not permitted with CTDB_SERVICE_AUTOSTARTSTOP=yes' fi ctdb_service_start exit $? @@ -1037,7 +1037,7 @@ ctdb_start_stop_service () die 'service-stop event not permitted when service is managed' fi if [ "$CTDB_SERVICE_AUTOSTARTSTOP" = "yes" ] ; then - die 'service-stop event not permitted with $CTDB_SERVICE_AUTOSTARTSTOP = yes' + die 'service-stop event not permitted with CTDB_SERVICE_AUTOSTARTSTOP=yes' fi ctdb_service_stop exit $?