From 0d8cd5edbf0a1ecec60ba1ef3c31aa6b7678e9d6 Mon Sep 17 00:00:00 2001 From: Denys Havrysh Date: Wed, 29 Jun 2016 11:23:58 +0300 Subject: [PATCH] Fix expanding shell script position parameters with nounset enabled --- bootstrap-salt.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 60e1fc0..2770945 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -21,8 +21,8 @@ set -o nounset # Treat unset variables as an error __ScriptVersion="2016.06.27" __ScriptName="bootstrap-salt.sh" -__ScriptFullName="${0}" -__ScriptArgs="${*}" +__ScriptFullName="$0" +__ScriptArgs="$*" #====================================================================================================================== # Environment variables taken into account. @@ -630,7 +630,7 @@ fi echoinfo "Running version: ${__ScriptVersion}" echoinfo "Executed by: ${CALLER}" -echoinfo "Command line: \"${__ScriptFullName} ${__ScriptArgs}\"" +echoinfo "Command line: '${__ScriptFullName} ${__ScriptArgs}'" echowarn "Running the unstable version of ${__ScriptName}" #--- FUNCTION -------------------------------------------------------------------------------------------------------