From 7e2177deb8eab285f0eb28227f2c1bd7a09854cc Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Mon, 9 Oct 2023 12:05:52 -0700 Subject: [PATCH] Iterate on docker-stacks.sh --- fighter/scripts/docker-stacks.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fighter/scripts/docker-stacks.sh b/fighter/scripts/docker-stacks.sh index 2f8cf52..cd49e44 100644 --- a/fighter/scripts/docker-stacks.sh +++ b/fighter/scripts/docker-stacks.sh @@ -38,7 +38,7 @@ function compose_up_recreate { } function main { - echo "\$OPERATION is $OPERATION" + echo "\$@ is $@" echo "Parse global flags" while [ $# -gt 0 ]; do case $1 in @@ -62,9 +62,11 @@ function main { case $1 in -f | --force) FORCE=true + echo "Force is true" ;; up) - true + echo "Operation is up" + exit ;; *) echo "Unrecognized operation \'$1\'" @@ -80,6 +82,8 @@ function main { case $1 in down) true + echo "Operation is down" + exit ;; *) echo "Unrecognized operation \'$1\'"