diff options
author | Artturin <Artturin@artturin.com> | 2023-01-16 23:03:21 +0200 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-01-16 23:03:21 +0200 |
commit | f2c27018f067d9e664c6bac5200f1ef980fc8a93 (patch) | |
tree | 8cd04209b99384c20eb1b1202d95aeb0b0fc3b4b /pkgs/stdenv | |
parent | e09153da00ecd2d32f643d8191e2485dcf3996be (diff) |
stdenv: fix SC2242
exit -1 == exit 255 but we don't have a reason to use 255 In pkgs/stdenv/generic/setup.sh line 518: (( hostOffset <= targetOffset )) || exit -1 ^-- SC2242 (error): Can only exit with status 0-255. Other data should be wri tten to stdout/stderr.
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r-- | pkgs/stdenv/generic/setup.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 7e4c5edbc869e..a283ba25dd91f 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -515,7 +515,7 @@ findInputs() { local -r targetOffset="$3" # Sanity check - (( hostOffset <= targetOffset )) || exit -1 + (( hostOffset <= targetOffset )) || exit 1 local varVar="${pkgAccumVarVars[hostOffset + 1]}" local varRef="$varVar[$((targetOffset - hostOffset))]" @@ -644,7 +644,7 @@ activatePackage() { local -r targetOffset="$3" # Sanity check - (( hostOffset <= targetOffset )) || exit -1 + (( hostOffset <= targetOffset )) || exit 1 if [ -f "$pkg" ]; then source "$pkg" |