summary refs log tree commit diff
path: root/pkgs/build-support/bintools-wrapper
diff options
context:
space:
mode:
authorVictor Engmark <victor@engmark.name>2022-11-29 19:11:45 +1300
committerVictor Engmark <victor@engmark.name>2022-11-29 19:11:45 +1300
commit2a028c4f467610e42c62dfa79e29810e1e980193 (patch)
tree5213195d7126a5335e61599488b80355e0d8140d /pkgs/build-support/bintools-wrapper
parent585038671ca054727f9add8b7f429b4ef7cc2fc5 (diff)
downloadnixpkgs-2a028c4f467610e42c62dfa79e29810e1e980193.tar
nixpkgs-2a028c4f467610e42c62dfa79e29810e1e980193.tar.gz
nixpkgs-2a028c4f467610e42c62dfa79e29810e1e980193.tar.bz2
nixpkgs-2a028c4f467610e42c62dfa79e29810e1e980193.tar.lz
nixpkgs-2a028c4f467610e42c62dfa79e29810e1e980193.tar.xz
nixpkgs-2a028c4f467610e42c62dfa79e29810e1e980193.tar.zst
nixpkgs-2a028c4f467610e42c62dfa79e29810e1e980193.zip
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.
Diffstat (limited to 'pkgs/build-support/bintools-wrapper')
-rw-r--r--pkgs/build-support/bintools-wrapper/macos-sierra-reexport-hack.bash2
1 files changed, 1 insertions, 1 deletions
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 71b9471cbc8..255071adf68 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