From 2a214a29d302dece6a171dfc0b6c88ebe6099544 Mon Sep 17 00:00:00 2001 From: volodymyrZotov Date: Thu, 11 Aug 2022 18:38:45 +0300 Subject: [PATCH] unset IFS at the end of the flow --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6cad026..1de72ce 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -93,7 +93,6 @@ extract_using_service_account() { for env_var in $(op env ls); do populating_secret $env_var done - unset IFS } # Load environment variables using connect service. Iterate over hem to find 1Password references, load the secret values, @@ -129,6 +128,7 @@ elif [ "$auth_type" == "$CONNECT" ]; then extract_using_connect fi +unset IFS # Add extra env var that lists which secrets are managed by 1Password so that in a later step # these can be unset again. managed_variables_str=$(IFS=','; echo "${managed_variables[*]}")