CloudlySimon Posted July 19, 2023 Posted July 19, 2023 (edited) 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, 2023 by CloudlySimon
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now