From b816b9fc2df9186a0ed2ae7065755ea067571761 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 16 Jan 2024 17:47:51 -0500 Subject: [PATCH] Update zigbee2mqtt-install.sh test `dev` branch --- install/zigbee2mqtt-install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/install/zigbee2mqtt-install.sh b/install/zigbee2mqtt-install.sh index 277ce6ad..fa94476f 100644 --- a/install/zigbee2mqtt-install.sh +++ b/install/zigbee2mqtt-install.sh @@ -40,8 +40,20 @@ msg_info "Setting up Zigbee2MQTT Repository" $STD git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt msg_ok "Set up Zigbee2MQTT Repository" +read -r -p "Switch to Edge/dev branch? (y/N) " prompt +if [[ $prompt == "y" ]]; then + DEV="y" +else + DEV="n" +fi + msg_info "Installing Zigbee2MQTT" cd /opt/zigbee2mqtt +if [[ $DEV == "y" ]]; then +$STD git fetch origin dev:dev +$STD git checkout dev +$STD git pull +fi $STD npm ci msg_ok "Installed Zigbee2MQTT"