Hugo Publish
Dieses Script baut meine Webseite mit Hugo und läd sie auf den Server hoch.
#!/bin/bash
cd ~/storage/shared/websites/marcorocco.net
hugo --noBuildLock && rsync -avz public/ marcorocco:~/httpdocs --delete --chmod 755
if [ $? -eq 0 ]; then
termux-toast -b green "Upload succeeded"
else
termux-toast -b red "Upload failed"
fi