Skip to content

Commit

Permalink
vm: make sure usage help doesn't get traced
Browse files Browse the repository at this point in the history
  • Loading branch information
pktpls committed Jan 8, 2025
1 parent 30116e7 commit ca62214
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ EOF
exit 1
}

[ -n "$1" ] || usage

set -e
set -o pipefail
[ -n "$TRACE_VMSH" ] && set -x || true

[ -n "$1" ] && location="$1" || usage
location="$1"
host="$(cat "locations/$location.yml" | yq -r '.hosts[] | select(.role == "corerouter") | .hostname')"

[ -n "$2" ] && imgdir="$4" || imgdir="./tmp/build/$host/bin/targets/x86/64"
Expand Down

0 comments on commit ca62214

Please sign in to comment.