Skip to content

Commit

Permalink
Merge pull request #1475 from openziti/issue-127_allow_special_charac…
Browse files Browse the repository at this point in the history
…ters

Remove single quotes on special character passwords
  • Loading branch information
gberl002 authored Oct 26, 2023
2 parents 98cbb7a + 1684e5b commit b7c6daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickstart/docker/image/ziti-cli-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function persistEnvironmentValues {
# Store all ZITI_ variables in the environment file, creating the directory if necessary
tmpfilepath="$(mktemp)"
mkdir -p "$(dirname "${filepath}")" && echo "" > "${tmpfilepath}"
for zEnvVar in $(set | grep -e "^ZITI_" | sort); do
for zEnvVar in $(set | grep -e "^ZITI_" | sed "s/='\(.*\)'\$/=\1/" | sort); do
envvar="$(echo "${zEnvVar}" | cut -d '=' -f1)"
envval="$(echo "${zEnvVar}" | cut -d '=' -f2-1000)"
echo 'if [[ "$'${envvar}'" == "" ]]; then export '${envvar}'="'${envval}'"; else echo "NOT OVERRIDING: env var '${envvar}' already set. using existing value"; fi' >> "${tmpfilepath}"
Expand Down

0 comments on commit b7c6daa

Please sign in to comment.