hugo, print out the baseurl to see if there are any issues with passing it to the subjobs.

This commit is contained in:
me committed 2026-11-13 19:38:12 -07:00
1 parent c80f5b55ce
commit c79e036fa6
2 files changed
+6

No files matched your search

+4
View File
@@ -6,6 +6,8 @@ FORCE="$1"
BASEURL="$2"
echo "*** Running cronjob @ `date` ***"
echo "FORCE=$FORCE"
echo "BASEURL=$BASEURL"
# Pull any updates, and if the project is already up to date, exit successfully.
git pull | grep -v "up to date"
@@ -17,7 +19,9 @@ if [[ $status != 0 && -e /var/www/html/index.html && -z $FORCE ]]; then
fi
# If the project was not already up to date, build the new files for NGINX.
set -x
/usr/local/bin/hugo $BASEURL --gc --minify
set +x
status="$?"
echo "* Hugo status is '$status', FORCE is '$FORCE'."
if [[ $status == 0 && -e public/index.html ]]; then