summaryrefslogtreecommitdiffstats
path: root/clean-rpmsrate
diff options
context:
space:
mode:
Diffstat (limited to 'clean-rpmsrate')
-rwxr-xr-xclean-rpmsrate2
1 files changed, 1 insertions, 1 deletions
diff --git a/clean-rpmsrate b/clean-rpmsrate
index 1c34f93..04ac3c0 100755
--- a/clean-rpmsrate
+++ b/clean-rpmsrate
@@ -6,7 +6,7 @@ use strict;
use MGATools::rpmsrate;
my $output_file;
-$ARGV[0] =~ /-o/ and shift @ARGV and $output_file = shift;
+$ARGV[0] =~ /-o/ and do { shift @ARGV; $output_file = shift };
$ARGV[1] or print "\nUsage:
clean-rpmsrate [options] <rpmsrate file> <RPMs dir 1> <RPMs dir 2> ... <RPMs dir n>