From 2a028c4f467610e42c62dfa79e29810e1e980193 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Tue, 29 Nov 2022 19:11:45 +1300 Subject: 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. --- pkgs/build-support/bintools-wrapper/macos-sierra-reexport-hack.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/bintools-wrapper/macos-sierra-reexport-hack.bash b/pkgs/build-support/bintools-wrapper/macos-sierra-reexport-hack.bash index 71b9471cbc83f..255071adf6819 100644 --- a/pkgs/build-support/bintools-wrapper/macos-sierra-reexport-hack.bash +++ b/pkgs/build-support/bintools-wrapper/macos-sierra-reexport-hack.bash @@ -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 -- cgit 1.4.1