Fixed order of variables and commands at top of script

This commit is contained in:
2025-07-05 11:23:19 -04:00
parent 3312b77ffe
commit 38d9857ef6

6
rss.sh
View File

@ -2,13 +2,15 @@
set -euo pipefail
BASEDIR="$(dirname "${0}" | sed "s|^\.|${PWD}|")"
DATE="$(date -R)"
source "${BASEDIR}/website.conf"
shopt -s extglob
BASEDIR="$(dirname "${0}" | sed "s|^\.|${PWD}|")"
DATE="$(date -R)"
LINKS=($(find -P "${WEBROOT}/blog/" | grep 'index\.html' | grep -v 'blog/index\.html' | sed 's|index.html||g; s|.*/blog|blog|g' | sort))