From ee528f24917daf7cd439b0e4f5e7e3c93ba9a1b2 Mon Sep 17 00:00:00 2001 From: Kaustubh <24961562+LordKa0S@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:40:12 -0700 Subject: [PATCH] fix: echo environment variable containing special char --- tasks/agent_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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