mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 23:02:27 +00:00
* Doh! Calling `system' in an END block causes the exit status in $?
to be changed to 0.
This commit is contained in:
parent
e51a276907
commit
3cfe65e516
@ -32,6 +32,6 @@ sub closeSSHConnection {
|
||||
}
|
||||
}
|
||||
|
||||
END { closeSSHConnection; }
|
||||
END { my $saved = $?; closeSSHConnection; $? = $saved; }
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user