Jelajahi Sumber

Merge pull request #349 from infosiftr/fix-travis

Fix Travis "bashbrew/" change detection
Tianon Gravi 11 tahun lalu
induk
melakukan
a5295ab7d7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      bashbrew/travis.sh

+ 1 - 1
bashbrew/travis.sh

@@ -17,7 +17,7 @@ HEAD="$(git rev-parse --verify HEAD)"
 git fetch -q "https://github.com/$upstreamRepo.git" "refs/heads/$upstreamBranch"
 UPSTREAM="$(git rev-parse --verify FETCH_HEAD)"
 
-if [ "$(git diff --numstat "$UPSTREAM...$HEAD" -- . | wc -l)" ]; then
+if [ "$(git diff --numstat "$UPSTREAM...$HEAD" -- . | wc -l)" -ne 0 ]; then
 	# changes in bashbrew/ -- keep "--all" so we test the bashbrew script changes appropriately
 	echo >&2 'Changes in bashbrew/ detected!'
 else