From c82268a80bd722be2c841ec10d0c6e56a9390b90 Mon Sep 17 00:00:00 2001 From: Kartik Ganesh Date: Thu, 8 Feb 2024 13:17:31 -0800 Subject: [PATCH] Bugfix - move default value assignment in showFetchMigrationCommand.sh to before they are read from the command line Signed-off-by: Kartik Ganesh --- .../docker/migrationConsole/showFetchMigrationCommand.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TrafficCapture/dockerSolution/src/main/docker/migrationConsole/showFetchMigrationCommand.sh b/TrafficCapture/dockerSolution/src/main/docker/migrationConsole/showFetchMigrationCommand.sh index 5b208320c6..a6700496b1 100755 --- a/TrafficCapture/dockerSolution/src/main/docker/migrationConsole/showFetchMigrationCommand.sh +++ b/TrafficCapture/dockerSolution/src/main/docker/migrationConsole/showFetchMigrationCommand.sh @@ -14,6 +14,10 @@ usage() { exit 1 } +# Default values +create_only=false +dry_run=false + while [[ $# -gt 0 ]]; do key="$1" case $key in @@ -47,10 +51,6 @@ fi # ECS command overrides argument with placeholder for flags OVERRIDES_ARG="--overrides '{ \"containerOverrides\": [ { \"name\": \"fetch-migration\", \"command\": }]}'" -# Default values -create_only=false -dry_run=false - # Build flags string flags="" if [ "$dry_run" = true ]; then