Update build of frontend

This commit is contained in:
Pascal Vizeli 2017-07-17 00:49:34 +02:00
parent 57271a764f
commit cf2db71dd3
2 changed files with 12 additions and 3 deletions

View file

@ -73,9 +73,11 @@ BUILD_DIR=${BUILD_DIR:=$SCRIPTPATH}
WORKSPACE=${BUILD_DIR:=$SCRIPTPATH}/hassio-frontend
echo "[INFO] Checkout hass.io repository"
git clone "$REPOSITORY" "$WORKSPACE"
cd "$WORKSPACE" && git checkout "$BRANCH"
git submodule update --init --recursive
if [ ! -d "$WORKSPACE" ]; then
git clone "$REPOSITORY" "$WORKSPACE"
cd "$WORKSPACE" && git checkout "$BRANCH"
git submodule update --init --recursive
fi
echo "[INFO] Start frontend build"
docker stop $BUILD_CONTAINER_NAME 2> /dev/null || true