diff --git a/hangzig b/hangzig index c2ead75..3fd7f97 100755 --- a/hangzig +++ b/hangzig @@ -6,6 +6,7 @@ readonly bzl=https://github.com/bazelbuild/bazelisk/releases/download/v1.9.0/baz set -x outside() { + git clean -ffxd --exclude bazel if [[ ! -x bazel ]]; then rm -f bazel curl -L "$bzl" -o bazel @@ -23,7 +24,6 @@ inside() { exec ./bazel build -s --platforms @zig_sdk//:aarch64-macos-gnu //test:gognu } - case "${1:-}" in "") outside;;