From b0f22011cd091ff90d3b9636edead943c6c67b12 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 21 Nov 2012 23:23:34 +0000 Subject: use "find" instead of "grep" in scalar context --- urpm/parallel_ka_run.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm') diff --git a/urpm/parallel_ka_run.pm b/urpm/parallel_ka_run.pm index cd3925e0..e28c962b 100644 --- a/urpm/parallel_ka_run.pm +++ b/urpm/parallel_ka_run.pm @@ -16,11 +16,11 @@ our $mput_command = $ENV{URPMI_MPUT_COMMAND}; our $rshp_command = $ENV{URPMI_RSHP_COMMAND}; if (!$mput_command) { - ($mput_command) = grep { -x $_ } qw(/usr/bin/mput2 /usr/bin/mput); + ($mput_command) = find { -x $_ } qw(/usr/bin/mput2 /usr/bin/mput); } $mput_command ||= 'mput'; if (!$rshp_command) { - ($rshp_command) = grep { -x $_ } qw(/usr/bin/rshp2 /usr/bin/rshp); + ($rshp_command) = find { -x $_ } qw(/usr/bin/rshp2 /usr/bin/rshp); } $rshp_command ||= 'rshp'; -- cgit v1.2.1