/home/extend/.octopus/OctopusServer/Work/20190612170824-28270-697/Script.sh: line 4: newReleaseFolder: command not found
/home/extend/.octopus/OctopusServer/Work/20190612170824-28270-697
/home/extend/.octopus/OctopusServer/Work/20190612170824-28270-697/Script.sh: line 9: releaseNumber: command not found
/home/extend/.octopus/OctopusServer/Work/20190612170824-28270-697/Script.sh: line 12: environment: command not found
FINISHED !
I’m using Octopus v2019.5.7
What is the correct way to use variables in a bash inline script?
Regards
Thanks for getting in touch. I didn’t have a CentOS box available but I tested the following against an Ubuntu box. I had troubles with this as well as I’m not a bash scripting expert. I read the following on this site.
This is one of those areas where formatting is important. Note there is no space on either side of the equals ( = ) sign. We also leave off the $ sign from the beginning of the variable name when setting it.
So in your example, we need to remove the spaces when assigning variables. I noticed our docs site has the incorrect formatting so I’ll update it as well.