We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 53f4bc3 + bd4f381 commit 547c12bCopy full SHA for 547c12b
src/ci/init_repo.sh
@@ -41,8 +41,10 @@ if [ ! -f "$cache_valid_file" ]; then
41
rm -rf "$CACHE_DIR"
42
mkdir "$CACHE_DIR"
43
else
44
+ set +o errexit
45
stat_lines=$(cd "$cache_src_dir" && git status --porcelain | wc -l)
- stat_ec=$(cd "$cache_src_dir" && git status >/dev/null 2>&1 && echo $?)
46
+ stat_ec=$(cd "$cache_src_dir" && git status >/dev/null 2>&1; echo $?)
47
+ set -o errexit
48
if [ ! -d "$cache_src_dir/.git" -o $stat_lines != 0 -o $stat_ec != 0 ]; then
49
# Something is badly wrong - the cache valid file is here, but something
50
# about the git repo is fishy. Nuke it all, just in case
0 commit comments