summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreudoxia <uplink@distress.network>2020-11-23 23:41:30 -0500
committereudoxia <uplink@distress.network>2020-11-23 23:41:30 -0500
commitbca6f42716d44701bb6717f55da1db78035dd23d (patch)
treeddf7d4c3d0f84af0b11fabc06e40921cca31959b
parentc7d168a367594178f4b12ca9b18793c843d851d6 (diff)
fixed plain.sh header name, fixed sitemap.sh '.git' bug
-rw-r--r--plain-header (renamed from simple-header)0
-rwxr-xr-xsitemap.sh2
2 files changed, 1 insertions, 1 deletions
diff --git a/simple-header b/plain-header
index 65cdda0..65cdda0 100644
--- a/simple-header
+++ b/plain-header
diff --git a/sitemap.sh b/sitemap.sh
index ddd6358..c6cfc38 100755
--- a/sitemap.sh
+++ b/sitemap.sh
@@ -43,7 +43,7 @@ echo '<?xml version="1.0" encoding="UTF-8"?>
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' > $2
-echo "$(find -L $1 -type d | sort | sed -e 's;^\./;;' -e '\;/\(css\|error\|favicon\|fonts\|js\|media\);d' -e 's;$;/;')" | \
+echo "$(find -L $1 -type d | sort | sed -e 's;^\./;;' -e '\;/\(.git\|css\|error\|favicon\|fonts\|js\|media\);d' -e 's;$;/;')" | \
while IFS='' read -r data ; do
DATE=$(grep "last-modified" ${data}/index.html | cut -f 4 -d \" | sed 's/ /T/' ) ;
urlencode "$data" | sed -e 's;^;<url><loc>https://;' -e "s;$;</loc><lastmod>${DATE}</lastmod></url>;" ;