From 073c44f0826e59f80bc0807b4c9942112214867c Mon Sep 17 00:00:00 2001 From: Robert Kibble Date: Thu, 23 Nov 2023 11:39:16 +0000 Subject: [PATCH 1/2] BAU - fix ENV not having a dollar sign in front --- scripts/aws_cloudfoundry_bucket_pull.sh | 8 ++++---- scripts/aws_cloudfoundry_bucket_push.sh | 10 +++++----- scripts/aws_cloudfoundry_migrate.sh | 8 ++++---- scripts/aws_connect_db.sh | 8 ++++---- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/scripts/aws_cloudfoundry_bucket_pull.sh b/scripts/aws_cloudfoundry_bucket_pull.sh index 772b6ddd..22a937e6 100755 --- a/scripts/aws_cloudfoundry_bucket_pull.sh +++ b/scripts/aws_cloudfoundry_bucket_pull.sh @@ -13,10 +13,10 @@ usage() } ENV=$1 -case ENV in -test) break;; -uat) break;; -prod) break;; +case $ENV in +test) ;; +uat) ;; +prod) ;; *) echo "Invalid env!";usage;exit 1;; esac diff --git a/scripts/aws_cloudfoundry_bucket_push.sh b/scripts/aws_cloudfoundry_bucket_push.sh index 18f46d6f..628bc2ba 100755 --- a/scripts/aws_cloudfoundry_bucket_push.sh +++ b/scripts/aws_cloudfoundry_bucket_push.sh @@ -13,11 +13,11 @@ usage() } ENV=$1 -case ENV in -dev) break;; -test) break;; -uat) break;; -prod) break;; +case $ENV in +dev) ;; +test) ;; +uat) ;; +prod) ;; *) echo "Invalid env!";usage;exit 1;; esac diff --git a/scripts/aws_cloudfoundry_migrate.sh b/scripts/aws_cloudfoundry_migrate.sh index 8ff8d804..2488cb6c 100755 --- a/scripts/aws_cloudfoundry_migrate.sh +++ b/scripts/aws_cloudfoundry_migrate.sh @@ -29,10 +29,10 @@ CF=1 # For debugging purposes only ENV=$1 -case ENV in -test) break;; -uat) break;; -prod) break;; +case $ENV in +test) ;; +uat) ;; +prod) ;; *) echo "Invalid env!";usage;exit 1;; esac diff --git a/scripts/aws_connect_db.sh b/scripts/aws_connect_db.sh index 4df2e407..160039a0 100755 --- a/scripts/aws_connect_db.sh +++ b/scripts/aws_connect_db.sh @@ -28,10 +28,10 @@ fi SERVICE="$1" case SERVICE in - fsd-account-store) break;; - fsd-application-store) break;; - fsd-assessment-store) break;; - fsd-fund-store) break;; + fsd-account-store) ;; + fsd-application-store) ;; + fsd-assessment-store) ;; + fsd-fund-store) ;; *) echo;echo "INVALID SERVICE!";usage;exit 1;; esac From 3a06039e4999904e00d31be0124c509c79789a0e Mon Sep 17 00:00:00 2001 From: Robert Kibble Date: Thu, 23 Nov 2023 11:41:02 +0000 Subject: [PATCH 2/2] Extra SERVICE --- scripts/aws_connect_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/aws_connect_db.sh b/scripts/aws_connect_db.sh index 160039a0..856cd042 100755 --- a/scripts/aws_connect_db.sh +++ b/scripts/aws_connect_db.sh @@ -27,7 +27,7 @@ then fi SERVICE="$1" -case SERVICE in +case $SERVICE in fsd-account-store) ;; fsd-application-store) ;; fsd-assessment-store) ;;