From 9052b70b2ab5b64f3f06f7eaddcd50e6af9cb718 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 20 Mar 2017 00:58:38 +0100 Subject: [PATCH] cleanup script --- build-scripts/resinos-build/create_resinos.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/build-scripts/resinos-build/create_resinos.sh b/build-scripts/resinos-build/create_resinos.sh index 82c4626fa..b79546d7a 100755 --- a/build-scripts/resinos-build/create_resinos.sh +++ b/build-scripts/resinos-build/create_resinos.sh @@ -43,20 +43,10 @@ RESIN_BRANCH=${RESIN_BRANCH:=master} # evaluate git repo and arch case $MACHINE in - "raspberrypi") + "raspberrypi", "raspberrypi2", "raspberrypi3") ARCH="armhf" RESIN_REPO="https://github.com/resin-os/resin-raspberrypi" - HOMEASSISTANT_REPOSITORY="$DOCKER_REPO/raspberrypi-homeassistant" - ;; - "raspberrypi2") - ARCH="armhf" - RESIN_REPO="https://github.com/resin-os/resin-raspberrypi" - HOMEASSISTANT_REPOSITORY="$DOCKER_REPO/raspberrypi2-homeassistant" - ;; - "raspberrypi3") - ARCH="armhf" - RESIN_REPO="https://github.com/resin-os/resin-raspberrypi" - HOMEASSISTANT_REPOSITORY="$DOCKER_REPO/raspberrypi3-homeassistant" + HOMEASSISTANT_REPOSITORY="$DOCKER_REPO/$MACHINE-homeassistant" ;; *) echo "[ERROR] ${MACHINE} unknown!"