Quote $ref to avoid word splitting

This commit is contained in:
Simon Whitaker
2022-12-12 16:26:22 +00:00
parent 747c0b5974
commit 2ee4979efa

View File

@@ -43,7 +43,7 @@ populating_secret() {
ref=$(printenv $1) ref=$(printenv $1)
echo "Populating variable: $1" echo "Populating variable: $1"
secret_value=$(op read $ref) secret_value=$(op read "$ref")
if [ -z "$secret_value" ]; then if [ -z "$secret_value" ]; then
echo "Could not find or access secret $ref" echo "Could not find or access secret $ref"