From 6fbc6f4eda10c88762d1749d3bc8485c8248cddc Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Tue, 10 Oct 2023 10:12:55 -0700 Subject: [PATCH] Iterate docker-stacks --- homelab/fighter/scripts/docker-stacks.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/homelab/fighter/scripts/docker-stacks.sh b/homelab/fighter/scripts/docker-stacks.sh index cd49e443..06443858 100644 --- a/homelab/fighter/scripts/docker-stacks.sh +++ b/homelab/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