1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

build-support: Use equivalent valid exit code

`exit -1` is equivalent to `exit 255`, since Bash does modulo 256 on the
number.

As per ShellCheck:

> SC2242 (error): Can only exit with status 0-255. Other data should be
> written to stdout/stderr.
This commit is contained in:
Victor Engmark 2022-11-29 19:11:45 +13:00
parent 585038671c
commit 2a028c4f46

View file

@ -136,7 +136,7 @@ while (( "${#norm[@]}" )); do
norm=("${norm[@]:1}")
else
echo "ld-wrapper: Internal Error: Invalid normalized argument" >&2
exit -1
exit 255
fi
;;
esac