ctdb-scripts: Avoid shellcheck warning SC2016 ($ in single quotes)
authorMartin Schwenke <martin@meltin.net>
Wed, 6 Jul 2016 05:22:19 +0000 (15:22 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 21 Jul 2016 00:24:26 +0000 (02:24 +0200)
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 <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/functions

index ac4212e3fad93b39a42e99ed2850db1817f97ccb..251779d8949c3102a0ef6190953325761b006982 100755 (executable)
@@ -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 $?