diff --git a/git2zola.sh b/git2zola.sh index 984ce17..f812fc6 100755 --- a/git2zola.sh +++ b/git2zola.sh @@ -187,7 +187,9 @@ do echo "testing for new data" # all outputs from git goes to error output gitpull=$(git pull --dry-run --ff-only 2>&1) - if [ ! -z ${gitpull} ] + gitwords=0 + gitwords=$(echo $gitpull | wc -w) + if [ ${gitwords} -gt 0 ] then getTheme pullAndBuild