From be3ba17993a3c27370adb3350e19d5aa337c3a7a Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 21 Jul 2022 07:50:42 -0400 Subject: [PATCH] Update haos-vm-v3.sh --- vm/haos-vm-v3.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/haos-vm-v3.sh b/vm/haos-vm-v3.sh index 34459f59..8c6e2a2f 100644 --- a/vm/haos-vm-v3.sh +++ b/vm/haos-vm-v3.sh @@ -2,7 +2,7 @@ GEN_MAC=$(echo '00 60 2f'$(od -An -N3 -t xC /dev/urandom) | sed -e 's/ /:/g' | tr '[:lower:]' '[:upper:]') NEXTID=$(pvesh get /cluster/nextid) RELEASE=$(curl -sX GET "https://api.github.com/repos/home-assistant/operating-system/releases" | awk '/tag_name/{print $4;exit}' FS='[""]') -STABLE="8.2" +STABLE=$(curl -s https://raw.githubusercontent.com/home-assistant/version/master/stable.json | grep "ova" | awk '{print substr($2, 2, length($2)-3) }') YW=`echo "\033[33m"` BL=`echo "\033[36m"` RD=`echo "\033[01;31m"` @@ -258,7 +258,7 @@ fi } function start_script() { - echo -e "${YW}Type Advanced, or Press [ENTER] for Default Settings " + echo -e "${YW}Type Advanced (Latest ${RELEASE}), or Press [ENTER] for Default Settings (Stable ${STABLE}) " read SETTINGS if [ -z $SETTINGS ]; then default_settings; else