From a3c66567643fd7ddf4fd991b949cb1cd70dc8a57 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 26 Jul 2021 00:54:27 -0600 Subject: [PATCH] fix(helpers): rename shell var in helper script --- helpers/ab-nginx.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helpers/ab-nginx.sh b/helpers/ab-nginx.sh index 9ab96a3..c9ffc10 100644 --- a/helpers/ab-nginx.sh +++ b/helpers/ab-nginx.sh @@ -22,7 +22,7 @@ else fi ### parameter defaults -shell=false +doShell=false container_name="ab-nginx" NETWORK='nginx_network' SUBNET='172.31.254.0/24' @@ -179,7 +179,7 @@ while [ $# -gt 0 ]; do ;; -s | --shell) # start shell instead of default CMD - shell=true + doShell=true ;; -n | --name) # container name @@ -209,7 +209,7 @@ docker network inspect ${NETWORK} >/dev/null 2>&1 || # run without TLS if [ -z "$SSL_CERT" ]; then - if [ "$shell" = 'true' ]; then + if [ "$doShell" = 'true' ]; then # exec shell printf "%s\nRunning SHELL on %s...%s\n" "$cyan" "$container_name" "$norm" # shellcheck disable=SC2086 @@ -235,7 +235,7 @@ if [ -z "$SSL_CERT" ]; then fi # run with TLS else - if [ "$shell" = 'true' ]; then + if [ "$doShell" = 'true' ]; then if [ "$TLS13_ONLY" = 'FALSE' ]; then printf "%s\nRunning SHELL on %s (TLS 1.2)...%s\n" "$cyan" "$container_name" "$norm" else