Hi, I should be missing the obvious: that’s the first time I use a bash script to deploy to CentOS.
I’m trying to perform the following commands:
newReleaseFolder = $(get_octopusvariable "Octopus.Action[Deploy package].Package.InstallationDirectoryPath") echo "$newReleaseFolder" pwd releaseNumber = $(get_octopusvariable "Octopus.Release.Number") echo "$releaseNumber" environment = $(get_octopusvariable "Octopus.Environment.Name") echo "$environment" echo "FINISHED !"
But the steps to get the variable do not work.
/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?