From 1f841558b013174479bd4d34526fb50f3b81a1a9 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Tue, 10 Oct 2023 10:12:55 -0700 Subject: [PATCH] Iterate docker-stacks --- fighter/scripts/docker-stacks.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fighter/scripts/docker-stacks.sh b/fighter/scripts/docker-stacks.sh index cd49e44..0644385 100644 --- a/fighter/scripts/docker-stacks.sh +++ b/fighter/scripts/docker-stacks.sh @@ -37,6 +37,12 @@ function compose_up_recreate { docker-compose up -d --force-recreate -f $STACK_PATH } +function get_global_args { + for arg in $@; do + echo "\$arg is $arg" + done +} + function main { echo "\$@ is $@" echo "Parse global flags" @@ -54,6 +60,8 @@ function main { esac shift done + echo "\$NASONLY is $NASONLY" + echo "\$LINT is $LINT" echo "\$OPERATION is $OPERATION" echo "Determine operation" case $OPERATION in @@ -101,4 +109,4 @@ function main { esac } -main "$@" \ No newline at end of file +get_global_args "$@" \ No newline at end of file