return of git test can be more than 1 word, so now counting words and tet it

This commit is contained in:
dockeradm
2023-02-27 23:04:08 +01:00
parent fde417a8fa
commit 88cc3be17a
+3 -1
View File
@@ -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