Skip to content

Commit c935299

Browse files
authored
fix: echo environment variable containing special char (#516)
1 parent b07439a commit c935299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/agent_install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ if [ -x "/opt/puppetlabs/bin/puppet" ]; then
66
echo "WARNING: Puppet agent is already installed. Re-install, re-configuration, or upgrade not supported and might fail."
77
fi
88

9-
flags=$(echo $PT_install_flags | sed -e 's/^\["*//' -e 's/"*\]$//' -e 's/", *"/ /g')
9+
flags=$(echo "$PT_install_flags" | sed -e 's/^\["*//' -e 's/"*\]$//' -e 's/", *"/ /g')
1010

1111
curl -k "https://${PT_server}:8140/packages/current/install.bash" | bash -s -- $flags

0 commit comments

Comments
 (0)