Updating install_icons script.

This commit is contained in:
Martin Kamerbeek 2010-10-21 13:56:52 +02:00
parent dd8c91cb44
commit a735068f25

View file

@ -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;