return of git test can be more than 1 word, so now counting words and tet it
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user