File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Examples/CloudFunctions/scripts Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ echo "Uploading \"$executable\" function to COS"
42
42
echo " -------------------------------------------------------------------------"
43
43
44
44
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
46
45
47
46
read -p " COS bucket region (eg: ap-beijing): " cos_region
48
47
cos_region=${cos_region:- ap-beijing} # default for easy testing
@@ -53,6 +52,8 @@ echo "-------------------------------------------------------------------------"
53
52
echo " Updating SCF function to use \" $executable \" "
54
53
echo " -------------------------------------------------------------------------"
55
54
55
+ cos_bucket=${cos_bucket% -* }
56
+
56
57
read -p " Cloud Function name (must exist in SCF): " function_name
57
58
function_name=${function_name:- SwiftSample} # default for easy testing
58
59
You can’t perform that action at this time.
0 commit comments