| Leopold Schabel | dca59d9 | 2021-04-01 19:02:53 +0200 | [diff] [blame] | 1 | #!/usr/bin/env bash | 
| Leopold Schabel | 2a2081c | 2019-10-23 13:33:10 +0200 | [diff] [blame] | 2 | set -euo pipefail | 
| Leopold Schabel | 2983d72 | 2019-10-23 12:16:42 +0200 | [diff] [blame] | 3 |  | 
| Leopold Schabel | 6767e05 | 2021-08-02 17:48:35 +0200 | [diff] [blame] | 4 | if ! podman inspect monogon-dev --format ":{{ range .Mounts }}{{.Source }}:{{ end }}" | grep -q ":$(pwd):"; then | 
| Leopold Schabel | 3cb0f4b | 2021-07-19 15:22:07 +0200 | [diff] [blame] | 5 | echo "Please run this wrapper from the original checkout" | 
|  | 6 | exit 1 | 
|  | 7 | fi | 
|  | 8 |  | 
| Serge Bazanski | bd0d24e | 2021-05-19 14:27:36 +0200 | [diff] [blame] | 9 | exec podman exec -it monogon-dev bazel --output_user_root ${HOME}/.cache/bazel-monogon "$@" |