summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-15 19:12:52 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-15 19:12:52 +0000
commitc59e56b1d049e1286a912dfa1f51393149e586b8 (patch)
tree69cc70348b505e3a6b8219eef985192fd1fce4c4
parent6a17d5e2d044065cf0981d584a311a664093b22a (diff)
downloadmgatools-c59e56b1d049e1286a912dfa1f51393149e586b8.tar
mgatools-c59e56b1d049e1286a912dfa1f51393149e586b8.tar.gz
mgatools-c59e56b1d049e1286a912dfa1f51393149e586b8.tar.bz2
mgatools-c59e56b1d049e1286a912dfa1f51393149e586b8.tar.xz
mgatools-c59e56b1d049e1286a912dfa1f51393149e586b8.zip
make it slight clearer
-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>