diff --git a/scripts/docs/update_docs.sh b/scripts/docs/update_docs.sh index 976280835..d8a340b15 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 git diff-index --quiet HEAD -- + if ! git diff-index --quiet HEAD -- then echo "-- No changes detected for the following commit, docs not updated." echo "https://github.com/driftyco/$CIRCLE_PROJECT_REPONAME/commit/$CIRCLE_SHA1" @@ -38,7 +38,7 @@ function run { git fetch git rebase - git push origin master + git push origin master || : echo "-- Updated docs for $VERSION_NAME succesfully!" fi