Skip to content

Commit 6e2cb4c

Browse files
committed
gaarf-wf: setup: Fixed handling use-secret-manager setting
Change-Id: I197e90a877e291a4cf4b862cd321677cec11335e
1 parent 12a719b commit 6e2cb4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gcp/setup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ create_secret() {
141141

142142
deploy_functions() {
143143
USE_SM=$(git config -f $SETTING_FILE functions.use-secret-manager || echo false)
144-
if [[ -n $USE_SM ]]; then
144+
if [[ "$USE_SM" == "true" ]]; then
145145
USE_SM="--use-secret-manager"
146+
else
147+
USE_SM=""
146148
fi
147149
CF_MEMORY=$(git config -f $SETTING_FILE functions.memory)
148150
if [[ -n $CF_MEMORY ]]; then

0 commit comments

Comments
 (0)