Some bash script output is interpretated as error in Script Console even if it wasn't sent to stderr

Some stdout from running bash script in Script Console is shown as error in logs like it was sent to stderr. Also it obviously causes the script to end with warning which is not expected.


Octopus version that I am using: 3.3.14


My initial suspicion here is that Java is actually writing to stderr.
I found some sources that suggest that java logs anything with a log-level of INFO or above to stderr by default.

Could you try redirecting to stdout (e.g. 2>&1)?


Yeah, redirecting the stderr to sdtout helps, thanks. However it doesn’t solve the issue entirely as ignores all the errors that might occur. It seems to be out of Octopus domain though. Thanks!

You’re most welcome.

Don’t hesitate to contact us if we can be of any assistance.

Happy Deployments!