attempting to eliminate the possibility for false positives when checking for docs changes

This commit is contained in:
perry 2016-11-28 10:53:24 -06:00
parent 00e68ca990
commit 13216d1f04

View File

@ -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