shellcheck: Fix shellcheck SC2242

> Can only exit with status 0-255. Other data should be written to stdout/stderr.

Switch exit -1 to exit 1

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman
2025-02-28 11:43:54 +00:00
parent ed8347c868
commit 67bfd4793e
3 changed files with 5 additions and 6 deletions

View File

@@ -137,7 +137,7 @@ main()
if [ -z "${check_in_container}" ]; then
echo "Error: 'OUTPUT_DIR' not set" >&2
echo "$0 should be run using the Dockerfile supplied." >&2
exit -1
exit 1
fi
local OPTIND
@@ -154,7 +154,7 @@ main()
# parse failure
help
echo "ERROR: Failed to parse arguments"
exit -1
exit 1
;;
esac
done