diff --git a/sysui/desktop/share/brand.pl b/sysui/desktop/share/brand.pl index 2be723b305149..9d73e619c4956 100644 --- a/sysui/desktop/share/brand.pl +++ b/sysui/desktop/share/brand.pl @@ -64,13 +64,13 @@ } -while (<>) { - unless (open INFILE,$ARGV) { - print STDOUT "Can't open input file $ARGV: $!\n"; +while ($arg = shift) { + unless (open INFILE,$arg) { + print STDOUT "Can't open input file $arg: $!\n"; exit 1; } - $srcfile = substr($ARGV, rindex($ARGV, "/") + 1); + $srcfile = substr($arg, rindex($arg, "/") + 1); unless (open OUTFILE,"> $destdir/$prefix$srcfile") { print STDOUT "Can't open output file $destdir/$prefix$srcfile: $!\n";