From: Ian Jackson Date: Mon, 22 Jun 2020 16:06:52 +0000 (+0100) Subject: dgit-mirror-ssh-wrap: Fix syntax for multiple patterns X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=375416205ac9263c07b615d5ee7aa374b263a9e7;p=dgit.git 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 --- 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$}