mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-15 13:58:55 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user