From ea73a5f66d7389732e070e6eaa960d6d19a60fb5 Mon Sep 17 00:00:00 2001 From: n8225 Date: Tue, 20 Aug 2019 23:54:05 -0500 Subject: [PATCH] Fix travis --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9374576e..d7025cb9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ before_install: before_script: script: - - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then git diff origin/master -U0 README.md | grep -Pos "(?<=^\+).*" >> temp.md && node tests/test.js temp.md; else node tests/test.js temp.md; fi' + - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ -f temp.md ]; then git diff origin/master -U0 README.md | grep -Pos "(?<=^\+).*" >> temp.md && node tests/test.js temp.md; else (exit 0); fi else node tests/test.js temp.md; fi' - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then awesome_bot temp.md --allow-redirect --skip-save-results; else awesome_bot README.md --allow-redirect --skip-save-results; fi' notifications: