commit | 3cb0f4bdc0766574854a2db578fddd97b6648f6e | [log] [tgz] |
---|---|---|
author | Leopold Schabel <leo@nexantic.com> | Mon Jul 19 15:22:07 2021 +0200 |
committer | Leopold Schabel <leo@nexantic.com> | Wed Jul 21 09:42:55 2021 +0000 |
tree | abb60b92caf3bd63cb757fcbbda0631280d9c4e5 | |
parent | 439b95eb515c86ba8ce9917da258c0875f36f038 [diff] [blame] |
scripts: check if running from original checkout Change-Id: I42e6b9e38a86a05c8ddbd2716ed2bd4d1db59331 Reviewed-on: https://review.monogon.dev/c/monogon/+/217 Reviewed-by: Sergiusz Bazanski <serge@nexantic.com>
diff --git a/scripts/run_in_container.sh b/scripts/run_in_container.sh index 11a905e..b2d0e3d 100755 --- a/scripts/run_in_container.sh +++ b/scripts/run_in_container.sh
@@ -1,4 +1,9 @@ #!/usr/bin/env bash set -euo pipefail +if [[ "$(podman inspect monogon-dev --format "{{ (index .Mounts 0).Source }}")" != "$(pwd)" ]]; then + echo "Please run this wrapper from the original checkout" + exit 1 +fi + podman exec -it monogon-dev $@