Skip to content

Commit db96c60

Browse files
committed
Fix deployment script
1 parent a312e19 commit db96c60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Examples/CloudFunctions/scripts/deploy.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ echo "Uploading \"$executable\" function to COS"
4242
echo "-------------------------------------------------------------------------"
4343

4444
read -p "COS bucket to upload (name-appid, eg: examplebucket-1250000000): " cos_bucket
45-
cos_bucket=${cos_bucket:-swift-scf-test} # default for easy testing
4645

4746
read -p "COS bucket region (eg: ap-beijing): " cos_region
4847
cos_region=${cos_region:-ap-beijing} # default for easy testing
@@ -53,6 +52,8 @@ echo "-------------------------------------------------------------------------"
5352
echo "Updating SCF function to use \"$executable\""
5453
echo "-------------------------------------------------------------------------"
5554

55+
cos_bucket=${cos_bucket%-*}
56+
5657
read -p "Cloud Function name (must exist in SCF): " function_name
5758
function_name=${function_name:-SwiftSample} # default for easy testing
5859

0 commit comments

Comments
 (0)