summaryrefslogtreecommitdiff
path: root/sysui/desktop/share/brand.pl
diff options
context:
space:
mode:
Diffstat (limited to 'sysui/desktop/share/brand.pl')
-rw-r--r--sysui/desktop/share/brand.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysui/desktop/share/brand.pl b/sysui/desktop/share/brand.pl
index 2be723b30514..9d73e619c495 100644
--- a/sysui/desktop/share/brand.pl
+++ b/sysui/desktop/share/brand.pl
@@ -64,13 +64,13 @@ while ($_ = $ARGV[0], /^-/) {
}
-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";