Updating install_icons script.
This commit is contained in:
parent
dd8c91cb44
commit
a735068f25
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,8 @@ for ( qw{ assets adminConsole } ) {
|
|||
die "Cannot find large icon directory $largeDest" unless -d $largeDest;
|
||||
die "Cannot find small icon directory $smallDest" unless -d $smallDest;
|
||||
|
||||
next unless -d $largeOrig && -d $smallOrig;
|
||||
|
||||
my ( %large, %small );
|
||||
opendir my $largeDir, "$largeOrig";
|
||||
while ( my $file = readdir $largeDir ) {
|
||||
|
|
@ -38,7 +40,7 @@ for ( qw{ assets adminConsole } ) {
|
|||
};
|
||||
closedir $largeDir;
|
||||
|
||||
opendir my $smallDir, "$smallOrig";
|
||||
opendir my $smallDir, "$smallOrig" || next;
|
||||
while ( my $file = readdir $smallDir ) {
|
||||
next unless $file =~ m{ \.gif $ }xmsi;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue