From 375416205ac9263c07b615d5ee7aa374b263a9e7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 22 Jun 2020 17:06:52 +0100 Subject: [PATCH] dgit-mirror-ssh-wrap: Fix syntax for multiple patterns We don't want to repeat $command =~ so we need to assign the command to $_; No functional change with the current single pattern. Signed-off-by: Ian Jackson --- infra/dgit-mirror-ssh-wrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/dgit-mirror-ssh-wrap b/infra/dgit-mirror-ssh-wrap index c3d033f5..4ce4e245 100755 --- a/infra/dgit-mirror-ssh-wrap +++ b/infra/dgit-mirror-ssh-wrap @@ -24,7 +24,7 @@ my $command = $ENV{SSH_ORIGINAL_COMMAND} #print STDERR ">$d<\n"; -$command =~ +$_ = $command; m{^rsync --server -lHtre\.iLsfxC --timeout=\d+ --delete --safe-links \. $d$} -- 2.30.2