summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/aggregate.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index 7d4565342..419b40fdb 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -390,8 +390,8 @@ sub garbage_collect () {
# any guid whose feed is gone should be removed
if (! exists $feeds{$guid->{feed}}) {
if (exists $guid->{page}) {
- unlink "$config{srcdir}/".htmlfn($guid->{page});
- unlink $IkiWiki::Plugin::transient::transientdir."/".htmlfn($guid->{page});
+ unlink $IkiWiki::Plugin::transient::transientdir."/".htmlfn($guid->{page})
+ || unlink "$config{srcdir}/".htmlfn($guid->{page});
}
delete $guids{$guid->{guid}};
}