Posted July 19, 20231 yr I have a few bash scripts that I want to exit with an error code under certain circumstances, as I want the script to show as failed. The issue is that the output for the script is empty, except for the line "Could not execute automation ad-hoc script shell" This only occurs when the exit code is greater than 0. Example below: Quote #!/bin/bash echo "exiting with exit 2" exit 2 I'd expect the output of the script to be: Quote Output exiting with exit 2 -2 Exit Code but it looks like this: Quote Output Could not execute automation ad-hoc script shell -1 Exit Code What am I doing wrong? Linux agent 9.2, running on Ubuntu 22.04 Edited July 19, 20231 yr by CloudlySimon
Create an account or sign in to comment