Skip to content

Commit 4fe8381

Browse files
committed
check if file exists
1 parent b5162f0 commit 4fe8381

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.kokoro/populate-secrets.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ do
3838
# --project cloud-devrel-kokoro-resources \
3939
# --secret ${key} > \
4040
# "${SECRET_LOCATION}/${key}"
41+
if [[ -f "${SECRET_LOCATION}/${key}" ]]; then
42+
msg "Secret file exists: ${SECRET_LOCATION}/${key}"
43+
fi
4144
if [[ $? == 0 ]]; then
4245
msg "Secret written to ${SECRET_LOCATION}/${key}"
4346
else

0 commit comments

Comments
 (0)