diff --git a/scripts/zola.sh b/scripts/zola.sh index 9dffbd0..8916e70 100755 --- a/scripts/zola.sh +++ b/scripts/zola.sh @@ -109,9 +109,12 @@ deploy() { /bin/rm -rf * cp -r $tmp_dir/* . git add --all - git commit \ - --author="$3" \ - --message="new deploy: $(date --iso-8601=seconds)" + if [ ! -z $(git status --porcelain) ]; + then + git commit \ + --author="$3" \ + --message="new deploy: $(date --iso-8601=seconds)" + fi git checkout $original_branch }