From 89c85f829017ea1d1a237243785b1e4e2851c716 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 5 Oct 2022 20:37:33 -0400 Subject: [PATCH] Update zwave-js-ui-update.sh --- misc/zwave-js-ui-update.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/zwave-js-ui-update.sh b/misc/zwave-js-ui-update.sh index 70108b55..53168069 100644 --- a/misc/zwave-js-ui-update.sh +++ b/misc/zwave-js-ui-update.sh @@ -35,8 +35,9 @@ clear echo -en "${GN} Updating Z-wave JS UI... " systemctl stop zwave-js-ui.service cd /opt/zwave-js-ui -curl -s https://api.github.com/repos/zwave-js/zwave-js-ui/releases/latest | grep "browser_download_url.*zip" | cut -d : -f 2,3 | tr -d \" | wget -i - &>/dev/null -unzip -o zwave-js-ui-v*.zip zwave-js-ui &>/dev/null +RELEASE=$(curl -s https://api.github.com/repos/zwave-js/zwave-js-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') +wget https://github.com/zwave-js/zwave-js-ui/releases/download/${RELEASE}/zwave-js-ui-${RELEASE}-linux.zip &>/dev/null +unzip zwave-js-ui-${RELEASE}.zip zwave-js-ui &>/dev/null echo -e "${CM}${CL} \r" echo -en "${GN} Cleanup... "