Update zigbee2mqtt-install.sh

remove `dev` option
This commit is contained in:
tteckster 2024-01-16 17:21:13 -05:00 committed by GitHub
parent c5e9a48aa3
commit cbdfb1803a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,20 +40,8 @@ msg_info "Setting up Zigbee2MQTT Repository"
$STD git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt $STD git clone --depth 1 https://github.com/Koenkk/zigbee2mqtt.git /opt/zigbee2mqtt
msg_ok "Set up Zigbee2MQTT Repository" 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" msg_info "Installing Zigbee2MQTT"
cd /opt/zigbee2mqtt cd /opt/zigbee2mqtt
if [[ $DEV == "y" ]]; then
$STD git fetch origin dev
$STD git checkout dev
$STD git pull
fi
$STD npm ci $STD npm ci
msg_ok "Installed Zigbee2MQTT" msg_ok "Installed Zigbee2MQTT"