about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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;