inou/health-poller/setup_integrations.sh

15 lines
356 B
Bash
Executable File

#!/bin/bash
# Clone or update HA integrations used as libraries
INTDIR="$(dirname "$0")/integrations"
clone_or_pull() {
local repo=$1 dir=$2
if [ -d "$INTDIR/$dir" ]; then
git -C "$INTDIR/$dir" pull --ff-only
else
git clone "$repo" "$INTDIR/$dir"
fi
}
clone_or_pull https://github.com/antoinebou12/hass_renpho hass_renpho