Move sitemap XML files into their own folder, add to .gitignore

This commit is contained in:
wiz committed 2020-03-27 23:04:46 +09:00
1 parent 638b1495df
commit 8c14866ead
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -0,0 +1 @@
sitemap
+1 -1
View File
@@ -27,7 +27,7 @@ BLOCK_HASH=$(curl -s https://mempool.space/electrs/mainnet/block-height/${BLOCK_
BLOCK=$(curl -s https://mempool.space/electrs/mainnet/block/${BLOCK_HASH})
BLOCK_TIMESTAMP=$(echo "${BLOCK}"|sed -e 's/.*timestamp.://' -e 's/,.*//')
SITEMAP_FILE=$(printf "sitemap-%05d.xml" "${FILE}")
SITEMAP_FILE=$(printf "sitemap/%05d.xml" "${FILE}")
SITEMAP_LASTMOD=$(date -r "${BLOCK_TIMESTAMP}" +"%Y-%m-%dT%H:%M:%SZ")
if [ ! -f "${SITEMAP_FILE}" ] || [ "${BLOCK_HEIGHT}" -gt $(($BLOCK_TIP_HEIGHT - 2000)) ];then