update-build

This commit is contained in:
firebadnofire 2025-04-21 17:45:04 +00:00
parent 067262313d
commit bf7334a2a6
Signed by: firebadnofire
SSH key fingerprint: SHA256:bnN1TGRauJN84CxL1IZ/2uHNvJualwYkFjOKaaOilJE

View file

@ -1,5 +1,15 @@
#!/bin/bash #!/bin/bash
if [[ -z "${!1+x}" ]]; then
echo "Error: Variable '$1' is not set"
exit 1
fi
hugo --cleanDestinationDir hugo --cleanDestinationDir
sudo rsync -av --delete ./public/ /var/www/pol/public/ sudo rsync -av --delete ./public/ /var/www/pol/public/
git add .
git commit -S -m "$1"
git push