commit | 6767e052c761f2b19a4966f707c65d8bc08c3c3c | [log] [tgz] |
---|---|---|
author | Leopold Schabel <leo@nexantic.com> | Mon Aug 02 17:48:35 2021 +0200 |
committer | Leopold Schabel <leo@nexantic.com> | Thu Aug 05 16:18:20 2021 +0000 |
tree | 9fc05de5509f43721699819f4d159330a82fc3e6 | |
parent | 3cb0f4bdc0766574854a2db578fddd97b6648f6e [diff] [blame] |
scripts: stable directory matching 2nd go at I30e1f0ec1b2a958decaffab181f3b80a4f37b2ce Change-Id: Id64776b079bc0e47963630b9f160aafed918b50e Reviewed-on: https://review.monogon.dev/c/monogon/+/259 Reviewed-by: Sergiusz Bazanski <serge@monogon.tech>
diff --git a/scripts/bin/ibazel b/scripts/bin/ibazel index b0dc474..f03e57d 100755 --- a/scripts/bin/ibazel +++ b/scripts/bin/ibazel
@@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -if [[ "$(podman inspect monogon-dev --format "{{ (index .Mounts 0).Source }}")" != "$(pwd)" ]]; then +if ! podman inspect monogon-dev --format ":{{ range .Mounts }}{{.Source }}:{{ end }}" | grep -q ":$(pwd):"; then echo "Please run this wrapper from the original checkout" exit 1 fi