From bea5dff2d5087599cf27357bd038030d473822c9 Mon Sep 17 00:00:00 2001 From: azuki774s Date: Sat, 20 Jul 2024 13:24:05 +0900 Subject: [PATCH] not upload to s3 if no set BUCKET_NAME --- build/money-forward/main.sh | 5 +++++ build/sbi/main.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/build/money-forward/main.sh b/build/money-forward/main.sh index 2828b3d..1e3fff7 100644 --- a/build/money-forward/main.sh +++ b/build/money-forward/main.sh @@ -48,5 +48,10 @@ function s3_upload () { } fetch + +if [ -z $BUCKET_NAME]; then + exit 0 +fi + create_s3_credentials s3_upload diff --git a/build/sbi/main.sh b/build/sbi/main.sh index 13e0d2f..d83c763 100644 --- a/build/sbi/main.sh +++ b/build/sbi/main.sh @@ -45,5 +45,10 @@ function s3_upload () { } fetch + +if [ -z $BUCKET_NAME]; then + exit 0 +fi + create_s3_credentials s3_upload