#!/bin/bash -eu

if [ ! -d config ]; then
    mkdir config
fi

npm link && ./node_modules/homebridge/bin/homebridge --debug --user-storage-path .config
