Update zigbee2mqtt-install.sh

This commit is contained in:
CanbiZ 2025-01-04 10:48:49 +01:00 committed by Duncan Hill
parent 36dfd44ca1
commit c5fa9f8b69
No known key found for this signature in database

View File

@ -43,7 +43,6 @@ msg_ok "Installed pnpm"
msg_info "Setting up Zigbee2MQTT" msg_info "Setting up Zigbee2MQTT"
cd /opt cd /opt
$STD corepack enable
RELEASE=$(curl -s https://api.github.com/repos/Koenkk/zigbee2mqtt/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -s https://api.github.com/repos/Koenkk/zigbee2mqtt/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
wget -q "https://github.com/Koenkk/zigbee2mqtt/archive/refs/tags/${RELEASE}.zip" wget -q "https://github.com/Koenkk/zigbee2mqtt/archive/refs/tags/${RELEASE}.zip"
unzip -q ${RELEASE}.zip unzip -q ${RELEASE}.zip