From 214d80febad906ddf6fd7f93a4de137d720bc36d Mon Sep 17 00:00:00 2001 From: Packet Please Date: Sun, 29 Dec 2024 23:15:23 +0100 Subject: [PATCH] vm: fix imgdir parameter --- vm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vm.sh b/vm.sh index 1f0bf951..df4b3959 100755 --- a/vm.sh +++ b/vm.sh @@ -67,8 +67,7 @@ set -o pipefail 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" +[ -n "$2" ] && imgdir="$2" || imgdir="./tmp/build/$host/bin/targets/x86/64" # get kernel and rootfs