From 22fa9912e6fe95f66745d26c41b6f5af7f20fbab Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Mon, 9 Oct 2023 12:02:35 -0700 Subject: [PATCH] Iterate on docker-stacks.sh --- fighter/scripts/docker-stacks.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/fighter/scripts/docker-stacks.sh b/fighter/scripts/docker-stacks.sh index 6e372c7..2f8cf52 100644 --- a/fighter/scripts/docker-stacks.sh +++ b/fighter/scripts/docker-stacks.sh @@ -38,9 +38,8 @@ function compose_up_recreate { } function main { - NASONLY=false - LINT=false - FORCE=false + echo "\$OPERATION is $OPERATION" + echo "Parse global flags" while [ $# -gt 0 ]; do case $1 in -n | --nas-only) @@ -55,9 +54,10 @@ function main { esac shift done + echo "\$OPERATION is $OPERATION" + echo "Determine operation" case $OPERATION in up*) - echo "OPERATION is up" while [ $# -gt 0 ]; do case $1 in -f | --force) @@ -76,8 +76,6 @@ function main { echo "FORCE is $FORCE" ;; down*) - echo "OPERATION is down" - # run "down" on all stacks while [ $# -gt 0 ]; do case $1 in down) @@ -97,10 +95,6 @@ function main { exit ;; esac - - echo "\$NASONLY is $NASONLY" - echo "\$LINT is $LINT" - echo "\$OPERATION is $OPERATION" } main "$@" \ No newline at end of file