From 750ad05d0678fd014c424a19075fce9776d80d5d Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 27 Jul 2021 15:55:17 -0600 Subject: [PATCH] refactor(helpers): change name of stop and remove parameter switch --- helpers/ab-nginx.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/helpers/ab-nginx.sh b/helpers/ab-nginx.sh index adb8be1..cc8925d 100644 --- a/helpers/ab-nginx.sh +++ b/helpers/ab-nginx.sh @@ -4,6 +4,8 @@ # start ab-nginx container using params file variables # +# TODO: add error trapping on docker run statements + # text formatting presets if command -v tput >/dev/null; then cyan=$(tput bold)$(tput setaf 6) @@ -86,7 +88,7 @@ scriptHelp() { textBlockParam '--stop' textBlock "Stops the container specified by the '--name' parameter or with the default name 'ab-nginx'." newline - textBlockParam '--remove | --stopremvoe' + textBlockParam '--remove | --stop-remove' textBlock "Stops and removes the container specified by the '--name' parameter or with the default name 'ab-nginx'." # footer @@ -212,7 +214,7 @@ while [ $# -gt 0 ]; do # stop named container doStop=true ;; - --remove | --stopremove) + --remove | --stop-remove) # stop and remove named container doStop=true removeStopped=true