about summary refs log tree commit diff
path: root/src/ci
diff options
context:
space:
mode:
authorAidan Hobson Sayers <aidanhs@cantab.net>2017-04-07 19:55:52 +0100
committerAidan Hobson Sayers <aidanhs@cantab.net>2017-04-07 20:15:02 +0100
commitbd4f3815eb3f6339f6f0a97894e8b1766df25ea0 (patch)
treeb39e954a94b16e87972181ecfccd3532e8a7272b /src/ci
parentb970bc2a79719b5c1573fb87c96773ce131dbb8d (diff)
downloadrust-bd4f3815eb3f6339f6f0a97894e8b1766df25ea0.tar.gz
rust-bd4f3815eb3f6339f6f0a97894e8b1766df25ea0.zip
Disable errexit for sanity checking git repo
Diffstat (limited to 'src/ci')
-rwxr-xr-xsrc/ci/init_repo.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ci/init_repo.sh b/src/ci/init_repo.sh
index c235681cddd..633b88dd2c4 100755
--- a/src/ci/init_repo.sh
+++ b/src/ci/init_repo.sh
@@ -41,8 +41,10 @@ if [ ! -f "$cache_valid_file" ]; then
     rm -rf "$CACHE_DIR"
     mkdir "$CACHE_DIR"
 else
+    set +o errexit
     stat_lines=$(cd "$cache_src_dir" && git status --porcelain | wc -l)
-    stat_ec=$(cd "$cache_src_dir" && git status >/dev/null 2>&1 && echo $?)
+    stat_ec=$(cd "$cache_src_dir" && git status >/dev/null 2>&1; echo $?)
+    set -o errexit
     if [ ! -d "$cache_src_dir/.git" -o $stat_lines != 0 -o $stat_ec != 0 ]; then
         # Something is badly wrong - the cache valid file is here, but something
         # about the git repo is fishy. Nuke it all, just in case