Only write the OPDS feed and updated timestamp if the feeds actually changed

This commit is contained in:
Alex Cabal 2020-06-24 21:28:15 -05:00
parent 1f6170d23a
commit 6252cff1e5
2 changed files with 30 additions and 10 deletions

View file

@ -227,7 +227,7 @@ if [ "${verbose}" = "true" ]; then
printf "Rebuilding OPDS catalog ... "
fi
bash -c "php \"${scriptsDir}\"/generate-opds.php --webroot \"${webRoot}\" --weburl \"${webUrl}\" > \"${webRoot}\"/www/opds/all.xml"
bash -c "php \"${scriptsDir}\"/generate-opds.php --webroot \"${webRoot}\" --weburl \"${webUrl}\""
if [ "${verbose}" = "true" ]; then
printf "Done.\n"