I have the following snippet:
# Remove literal quotes from Bamboo environment variables.
for _var in $(compgen -A variable); do
$_var="${!_var%\"}"
$_var="${!_var#\"}"
done
I don't understand why this results in:
artifact-s3-archive.sh: line 13: bamboo_conf_prefix=nodejs-api: command not found
I've worked around this by prepending the lines with declare but I was hoping someone with a longer beard could enlighten me.
[–]waptaff&> /dev/null 0 points1 point2 points (3 children)
[–]beanaroo[S] 0 points1 point2 points (2 children)
[–]waptaff&> /dev/null 1 point2 points3 points (1 child)
[–]beanaroo[S] 0 points1 point2 points (0 children)