#!/bin/bash VERSION=$1 cd /tmp/ git clone https://github.com/Koenkk/zigbee2mqtt.git cd zigbee2mqtt/ git checkout $VERSION