Update zwave-js-ui-install.sh

This commit is contained in:
tteckster 2022-10-05 20:31:09 -04:00 committed by GitHub
parent a025cf1551
commit d90b2fbac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -78,8 +78,9 @@ msg_info "Installing Z-Wave JS UI"
mkdir /opt/zwave-js-ui mkdir /opt/zwave-js-ui
cd /opt/zwave-js-ui cd /opt/zwave-js-ui
mkdir store 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 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) }')
unzip zwave-js-ui-v*.zip zwave-js-ui &>/dev/null 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_ok "Installed Z-Wave JS UI"
msg_info "Creating Service" msg_info "Creating Service"