diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/check_missing_voices.pl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/check_missing_voices.pl b/tools/check_missing_voices.pl index 10e922d..06d4317 100755 --- a/tools/check_missing_voices.pl +++ b/tools/check_missing_voices.pl @@ -49,8 +49,12 @@ foreach my $locale (@LOCALES) { foreach my $subdir (@SUBDIRS) { - opendir DIR, "$BASEDIR/$locale/$subdir" - or die "cannot open dir $BASEDIR/$locale/$subdir: $!"; + if (! opendir DIR, "$BASEDIR/$locale/$subdir") + { + print "cannot open dir $BASEDIR/$locale/$subdir: $!"; + next; + } + foreach my $file ( grep { $_ =~ /\.ogg$/} readdir DIR) { if("@ALL_FILES" !~ /$subdir\/$file/g) |