Skip to content

Commit f8f8dac

Browse files
authored
Check for sitemaps.log instead of sitemaps directory
Fixes a bug where absence of sitemap directory is preventing sitemaps from being run after `--overwrite` deletes `sitemaps/` directory. Closes #7581, correctly implements #11625
1 parent f89d394 commit f8f8dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/oldump.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ fi
220220
# =================
221221
# Generate Sitemaps
222222
# =================
223-
if [[ ! -d $TMPDIR/sitemaps ]]
223+
if [[ ! -f $TMPDIR/sitemaps/sitemaps.log ]]
224224
then
225225
log "generating sitemaps"
226226
mkdir -p $TMPDIR/sitemaps

0 commit comments

Comments
 (0)