浏览代码

Merge pull request #349 from infosiftr/fix-travis

Fix Travis "bashbrew/" change detection
Tianon Gravi 11 年之前
父节点
当前提交
a5295ab7d7
共有 1 个文件被更改,包括 1 次插入1 次删除
  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