diff --git a/tasks/agent_install.sh b/tasks/agent_install.sh index dd162348..b91d8035 100755 --- a/tasks/agent_install.sh +++ b/tasks/agent_install.sh @@ -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