diff options
author | Joey Hess <joey@kitenet.net> | 2010-06-17 16:54:03 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-06-17 16:54:03 -0400 |
commit | cb4b99929757f970d5ae697f0d09514ad624ed46 (patch) | |
tree | 65c7d2b8473204302398f68e279a2e8e96bcc58b /IkiWiki/Plugin/autoindex.pm | |
parent | f70bc8184ace2cf10687daedf2b7176f32ef8a97 (diff) | |
download | ikiwiki-cb4b99929757f970d5ae697f0d09514ad624ed46.tar ikiwiki-cb4b99929757f970d5ae697f0d09514ad624ed46.tar.gz |
avoid dying if cannot chdir to an underlaydir
Diffstat (limited to 'IkiWiki/Plugin/autoindex.pm')
-rw-r--r-- | IkiWiki/Plugin/autoindex.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/autoindex.pm b/IkiWiki/Plugin/autoindex.pm index 5e8a9e0a3..c3eb53300 100644 --- a/IkiWiki/Plugin/autoindex.pm +++ b/IkiWiki/Plugin/autoindex.pm @@ -39,7 +39,7 @@ sub refresh () { my (%pages, %dirs); foreach my $dir ($config{srcdir}, @{$config{underlaydirs}}, $config{underlaydir}) { - chdir($dir) || die "chdir: $!"; + chdir($dir) || next; find({ no_chdir => 1, @@ -64,7 +64,7 @@ sub refresh () { } }, '.'); - chdir($origdir) || die "chdir: $!"; + chdir($origdir) || die "chdir $origdir: $!"; } my %deleted; |