From 65263f176ccd21b9011990a0af336c036bb2c437 Mon Sep 17 00:00:00 2001 From: rallytime Date: Mon, 4 Jun 2018 11:51:53 -0400 Subject: [PATCH] Shellcheck updates based on review --- bootstrap-salt.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index d146b88..eb2ee5d 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -61,11 +61,11 @@ __DEFAULT_SLEEP=3 _COLORS=${BS_COLORS:-$(tput colors 2>/dev/null || echo 0)} __detect_color_support() { if [ $? -eq 0 ] && [ "$_COLORS" -gt 2 ]; then - RC="\\033[1;31m" - GC="\\033[1;32m" - BC="\\033[1;34m" - YC="\\033[1;33m" - EC="\\033[0m" + RC='\033[1;31m' + GC='\033[1;32m' + BC='\033[1;34m' + YC='\033[1;33m' + EC='\033[0m' else RC="" GC="" @@ -6656,8 +6656,8 @@ fi # Drop the master address if passed if [ "$_SALT_MASTER_ADDRESS" != "null" ]; then [ ! -d "$_SALT_ETC_DIR/minion.d" ] && mkdir -p "$_SALT_ETC_DIR/minion.d" - cat <<_eof > "$_SALT_ETC_DIR/minion.d/99-master-address.conf -master: $_SALT_MASTER_ADDRESS" + cat <<_eof > "$_SALT_ETC_DIR/minion.d/99-master-address.conf" +master: $_SALT_MASTER_ADDRESS _eof fi