* Doh! Calling `system' in an END block causes the exit status in $?
to be changed to 0.
This commit is contained in:
+1
-1
@@ -32,6 +32,6 @@ sub closeSSHConnection {
|
||||
}
|
||||
}
|
||||
|
||||
END { closeSSHConnection; }
|
||||
END { my $saved = $?; closeSSHConnection; $? = $saved; }
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user