mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
The previous `if ! ( ... )` wrapper put the check body in a context where bash ignores `set -e`, so a failing command in the middle of a check would not abort it and the switch would proceed. Run the subshell outside any conditional and capture $? explicitly instead.