Skip to content

Commit 1118f75

Browse files
committed
Print warning if old VM is found
1 parent 2b44885 commit 1118f75

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/env_wrapper.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#!/bin/bash
22
set -euo pipefail
33

4+
# Check for dangling old-style tee-builder VM
5+
if command -v limactl &>/dev/null && limactl list 2>/dev/null | grep -q '^tee-builder '; then
6+
echo "WARNING: FOUND 'tee-builder' VM FROM BEFORE COMMIT 2b44885."
7+
echo "THIS VM IS NO LONGER USED. TO CLEAN IT UP, RUN:"
8+
echo " limactl stop tee-builder && limactl delete tee-builder"
9+
echo ""
10+
fi
11+
412
# Generate a unique VM name based on the absolute path of this repo
513
# This prevents conflicts when the same repo is cloned to multiple locations
614
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"

0 commit comments

Comments
 (0)