Update handling with homeassistant/machine version handling

This commit is contained in:
Pascal Vizeli 2017-09-28 10:17:58 +02:00 committed by GitHub
parent 0ede1d8356
commit 34893a2510

View file

@ -20,6 +20,7 @@ IMAGE=""
BUILD_LIST=() BUILD_LIST=()
BUILD_TYPE="addon" BUILD_TYPE="addon"
BUILD_TASKS=() BUILD_TASKS=()
BUILD_MACHINE=()
#### Misc functions #### #### Misc functions ####
@ -77,9 +78,9 @@ Options:
Build a hassio supervisor. Build a hassio supervisor.
--homeassistant-base --homeassistant-base
Build a Home-Assistant base image. Build a Home-Assistant base image.
--homeassistant --homeassistant <VERSION>
Build the generic release for a Home-Assistant. Build the generic release for a Home-Assistant.
--homeassistant-machine --homeassistant-machine <VERSION=ALL,X,Y>
Build the machine based image for a release. Build the machine based image for a release.
EOF EOF
@ -389,10 +390,15 @@ while [[ $# -gt 0 ]]; do
--homeassistant) --homeassistant)
BUILD_TYPE="homeassistant" BUILD_TYPE="homeassistant"
DOCKER_CACHE="false" DOCKER_CACHE="false"
VERSION=$2
shift
;; ;;
--homeassistant-machine) --homeassistant-machine)
BUILD_TYPE="homeassistant-machine" BUILD_TYPE="homeassistant-machine"
DOCKER_CACHE="false" DOCKER_CACHE="false"
VERSION="$(echo "$2" | cut -d '=' -f 1)"
IFS="," read -a BUILD_MACHINE <<<"$(echo "$2" | cut -d '=' -f 1)"
shift
;; ;;
*) *)