#!/bin/bash set -e mkdir -p Downloads cd Downloads if [ -d xknx ] then cd xknx git fetch -t else git clone https://github.com/xknx/xknx cd xknx fi if [ $version != "0.0.0" ] then git checkout $version cp LICENSE ../../debian/ fi