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. --- NEWS | 1 + lib/Iurt/Util.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index a126dd3..37a4f38 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +- ulri: Fix false positives of iurt dying on the build machine - Fix cleaning chroots (eg: when using --clean-all) 0.7.17.2 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