diff options
| author | Markus Pettersson <markus.pettersson@mullvad.net> | 2024-06-25 09:11:32 +0200 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2024-06-25 14:49:39 +0200 |
| commit | cf46dcaeeb096963c4107c03e7a3d6bb9a4d6128 (patch) | |
| tree | bf02cf18dfd21235095e9bb6e76d322434aa63e5 | |
| parent | 02b1e364b1178789a48326d1c1d1c3364ff7e227 (diff) | |
| download | mullvadvpn-cf46dcaeeb096963c4107c03e7a3d6bb9a4d6128.tar.xz mullvadvpn-cf46dcaeeb096963c4107c03e7a3d6bb9a4d6128.zip | |
Add a human-friendly error message if packages directory is missing
| -rwxr-xr-x | test/container-run.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/container-run.sh b/test/container-run.sh index 58425b2a4d..e4f24a29d9 100755 --- a/test/container-run.sh +++ b/test/container-run.sh @@ -6,6 +6,10 @@ CARGO_REGISTRY_VOLUME_NAME=${CARGO_REGISTRY_VOLUME_NAME:-"cargo-registry"} CONTAINER_RUNNER=${CONTAINER_RUNNER:-"podman"} PACKAGES_DIR=${PACKAGES_DIR:-"$HOME/.cache/mullvad-test/packages"} +if [ ! -d "$PACKAGES_DIR" ]; then + echo "$PACKAGES_DIR does not exist. It is needed to build the test bundle, so please go ahead and create the directory and re-run this script." +fi + SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" REPO_DIR="$SCRIPT_DIR/.." cd "$SCRIPT_DIR" |
