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