mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
runVM: check exit code before postVM eval
This commit is contained in:
parent
f4443bb9ef
commit
8b38b6aae2
@ -261,9 +261,12 @@ rec {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
eval "$postVM"
|
||||
exitCode="$(cat xchg/in-vm-exit)"
|
||||
if [ "$exitCode" != "0" ]; then
|
||||
exit "$exitCode"
|
||||
fi
|
||||
|
||||
exit $(cat xchg/in-vm-exit)
|
||||
eval "$postVM"
|
||||
'';
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user