diff --git a/scripts/docs/update_docs.sh b/scripts/docs/update_docs.sh index 492b9bc3..d3c81e0b 100755 --- a/scripts/docs/update_docs.sh +++ b/scripts/docs/update_docs.sh @@ -28,7 +28,7 @@ function run { # if no changes, don't commit CHANGED=$(git diff-index --name-only HEAD 2>/dev/null | wc -l) - if [ $CHANGED -gt 0 ]; + if [ $CHANGED -eq 0 ]; then echo "-- No changes detected for the following commit, docs not updated." echo "https://github.com/driftyco/$CIRCLE_PROJECT_REPONAME/commit/$CIRCLE_SHA1"