From 1189beb7ae60bbb3774515e62c36d47adf3c8cbd Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 1 Aug 2022 05:46:27 -0400 Subject: [PATCH] Update haos-vm-v4.sh --- vm/haos-vm-v4.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/haos-vm-v4.sh b/vm/haos-vm-v4.sh index 5739f28a..3b6641f1 100644 --- a/vm/haos-vm-v4.sh +++ b/vm/haos-vm-v4.sh @@ -3,7 +3,7 @@ echo -e "Loading..." PVE=$(pveversion | grep "pve-manager/7" | wc -l) 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='[""]') +LATEST=$(curl -sX GET "https://api.github.com/repos/home-assistant/operating-system/releases" | awk '/tag_name/{print $4;exit}' FS='[""]') 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"` @@ -101,7 +101,7 @@ function default_settings() { function advanced_settings() { BRANCH=$(whiptail --title "HAOS VERSION" --radiolist "Choose Version" 10 58 2 \ "$STABLE" "Stable" ON \ -"$RELEASE" "Latest" OFF \ +"$LATEST" "Latest" OFF \ 3>&1 1>&2 2>&3) exitstatus=$? if [ $exitstatus = 0 ]; then