Skip to content

Commit

Permalink
fix: echo environment variable containing special char (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
LordKa0S authored Oct 23, 2024
1 parent b07439a commit c935299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/agent_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ if [ -x "/opt/puppetlabs/bin/puppet" ]; then
echo "WARNING: Puppet agent is already installed. Re-install, re-configuration, or upgrade not supported and might fail."
fi

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

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

0 comments on commit c935299

Please sign in to comment.