unset IFS at the end of the flow

This commit is contained in:
volodymyrZotov
2022-08-11 18:38:45 +03:00
parent 2a4f64c09d
commit 2a214a29d3

View File

@@ -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[*]}")