runVM: check exit code before postVM eval
This commit is contained in:
parent
f4443bb9ef
commit
8b38b6aae2
1 changed files with 5 additions and 2 deletions
|
@ -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 a new issue