From 88cc3be17ab93e4e155e08515465078f669c2398 Mon Sep 17 00:00:00 2001 From: dockeradm Date: Mon, 27 Feb 2023 23:04:08 +0100 Subject: [PATCH] return of git test can be more than 1 word, so now counting words and tet it --- git2zola.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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