From d90b2fbac3df2cc48e5ff13c17ec3573f671d952 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 5 Oct 2022 20:31:09 -0400 Subject: [PATCH] Update zwave-js-ui-install.sh --- setup/zwave-js-ui-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/zwave-js-ui-install.sh b/setup/zwave-js-ui-install.sh index 8948e19b..e30bfdd7 100644 --- a/setup/zwave-js-ui-install.sh +++ b/setup/zwave-js-ui-install.sh @@ -78,8 +78,9 @@ msg_info "Installing Z-Wave JS UI" mkdir /opt/zwave-js-ui cd /opt/zwave-js-ui mkdir store -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 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 msg_ok "Installed Z-Wave JS UI" msg_info "Creating Service"