about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--scripts/ssh.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ssh.pm b/scripts/ssh.pm
index cea486675ece..233c5a4aa741 100644
--- a/scripts/ssh.pm
+++ b/scripts/ssh.pm
@@ -32,6 +32,6 @@ sub closeSSHConnection {
     }
 }
 
-END { closeSSHConnection; }
+END { my $saved = $?; closeSSHConnection; $? = $saved; }
 
 return 1;