From 13216d1f04ce311bbb74251e99d00ebf845bd78f Mon Sep 17 00:00:00 2001 From: perry Date: Mon, 28 Nov 2016 10:53:24 -0600 Subject: [PATCH] attempting to eliminate the possibility for false positives when checking for docs changes --- scripts/docs/update_docs.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/docs/update_docs.sh b/scripts/docs/update_docs.sh index b63af8472..a6e4a84c0 100755 --- a/scripts/docs/update_docs.sh +++ b/scripts/docs/update_docs.sh @@ -23,10 +23,8 @@ function run { # CD in to the site dir to commit updated docs cd $SITE_DIR - CHANGES=$(git status --porcelain) - # if no changes, don't commit - if [[ "$CHANGES" == "" ]]; then + if [[ `git status --porcelain` ]]; then echo "-- No changes detected for the following commit, docs not updated." echo "https://github.com/driftyco/$CIRCLE_PROJECT_REPONAME/commit/$CIRCLE_SHA1" else