Skip to content

Commit

Permalink
🔧 [meta]: Reinstate some set -x.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolyp committed Feb 4, 2025
1 parent 80290f9 commit 91b3a6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script/bundle-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,18 @@ echo "Cleaning dist/$WEBSITE_LISP_CASE"
shopt -s nullglob

# Only support one level of nesting for now
set +x
PAGES=($(for FILE in website/$WEBSITE/*.html; do
basename "$FILE" | sed 's/\.[^.]*$//'
done | sort -u))
set -x

for PAGE in "${PAGES[@]}"; do
. "${PREFIX_}script/bundle-page.sh" $WEBSITE.$PAGE ${PREFIX:+$PREFIX}
done

echo "Processing other static files:"
set +u # try to remove +u
set +xu # try to remove +u
TO_COPY=()
shopt -s extglob
for CHILD in website/$WEBSITE/!(.|..); do
Expand All @@ -41,7 +43,7 @@ for CHILD in website/$WEBSITE/!(.|..); do
fi
done
shopt -u extglob
set -u
set -xu

for CHILD in "${TO_COPY[@]}"; do
cp -rL "$CHILD" dist/$WEBSITE_LISP_CASE
Expand Down

0 comments on commit 91b3a6b

Please sign in to comment.