From c114af47702012d3c60b9b4f252f6c52b225d074 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Mon, 22 Aug 2022 18:04:52 +0000 Subject: Fix false positives of iurt dying on the build machine sout("foo || bar") was fetching the output of: ssh -x user@host foo || bar instead of: ssh -x user@host "foo || bar" This means we were considering the remote command to have failed when ssh to the machine to check status was failing. --- lib/Iurt/Util.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Iurt/Util.pm b/lib/Iurt/Util.pm index f9dfa9f..bf726d0 100644 --- a/lib/Iurt/Util.pm +++ b/lib/Iurt/Util.pm @@ -167,7 +167,7 @@ execute I<@command>. Return the command output. sub sout { my $conf = shift; my ($opt, $user, $host) = @$conf; - `ssh $opt -x $user\@$host @_ 2>/dev/null`; + `ssh $opt -x $user\@$host "@_" 2>/dev/null`; } =item sget($handle, $from, $to) -- cgit v1.2.1