update distribute script

This commit is contained in:
Trance-0
2025-11-25 10:19:06 -06:00
parent 3242bfc299
commit 34182ff139
3 changed files with 51 additions and 0 deletions

View File

@@ -24,6 +24,12 @@ for dir in ./content/*/; do
# strip the leading path and trailing slash
base_dir="$(basename "${dir%/}")"
# explicitly ignore Swap
if [ "$base_dir" = "Swap" ]; then
echo "Ignoring Swap dir: $dir"
continue
fi
# check if base_dir is in KEEP_PAGES (space-separated list)
case " $KEEP_PAGES " in
*" $base_dir "*)
@@ -40,6 +46,12 @@ done
for dir in ./public/*/; do
base_dir="$(basename "${dir%/}")"
# explicitly ignore Swap
if [ "$base_dir" = "Swap" ]; then
echo "Ignoring Swap dir: $dir"
continue
fi
case " $KEEP_PAGES " in
*" $base_dir "*)
echo "Keeping public dir: $dir"