diff --git a/scripts/docs/update_docs.sh b/scripts/docs/update_docs.sh index b28ced854..260294a85 100755 --- a/scripts/docs/update_docs.sh +++ b/scripts/docs/update_docs.sh @@ -24,7 +24,7 @@ function run { cd $SITE_DIR # if no changes, don't commit - if if [ -n "$(git status --porcelain)" ]; then + if [ -z "$(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