浏览代码

_build/github-deploy.sh: Fix exit code on conflicting remote commit

Daniel Rudolf 9 年之前
父节点
当前提交
32ea0508cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      _build/github-deploy.sh

+ 1 - 1
_build/github-deploy.sh

@@ -57,7 +57,7 @@ if [ -n "$CHECK_REPO_SLUG" ] && [ -n "$CHECK_REMOTE_REF" ] && [ -n "$CHECK_LOCAL
     # compare source reference against the latest commit
     if [ "$CHECK_REMOTE_COMMIT" != "$CHECK_LOCAL_COMMIT" ]; then
         echo "Latest local commit '$CHECK_LOCAL_COMMIT' doesn't match latest remote commit '$CHECK_REMOTE_COMMIT'; aborting..." >&2
-        exit 0
+        exit 1
     fi
 
     echo