I would like to reference octopus system variables like Octopus.Action.Package.PackageVersion
from an inline bash script without needing to pass it as a parameter. I might be missing something obvious, but it seems like there is only documentation for doing this in PowerShell (https://octopus.com/docs/deployment-examples/custom-scripts#Customscripts-Passingparameterstoscripts)
Is there a way to do the equivalent of
$environment = $OctopusParameters["Octopus.Environment.Name"]
Write-Host "Environment: $environment"
in an inline bash script?