forked from mirrors/nixpkgs
Merge pull request #161079 from SuperSandro2000/exit-handler
This commit is contained in:
commit
800e9e9994
|
@ -9,7 +9,7 @@ tmp=$(mktemp --tmpdir -d nixpkgs-dep-license.XXXXXX)
|
|||
exitHandler() {
|
||||
exitCode=$?
|
||||
rm -rf "$tmp"
|
||||
exit $exitCode
|
||||
return $exitCode
|
||||
}
|
||||
|
||||
trap "exitHandler" EXIT
|
||||
|
|
|
@ -143,14 +143,14 @@ exitHandler() {
|
|||
echo "build failed with exit code $exitCode (ignored)"
|
||||
mkdir -p "$out/nix-support"
|
||||
printf "%s" "$exitCode" > "$out/nix-support/failed"
|
||||
exit 0
|
||||
return 0
|
||||
fi
|
||||
|
||||
else
|
||||
runHook exitHook
|
||||
fi
|
||||
|
||||
exit "$exitCode"
|
||||
return "$exitCode"
|
||||
}
|
||||
|
||||
trap "exitHandler" EXIT
|
||||
|
|
Loading…
Reference in a new issue