fix help page

This commit is contained in:
Pascal Vizeli 2017-03-24 00:42:50 +01:00
parent 13f720895b
commit bb1eb63eb0

View File

@ -10,11 +10,6 @@ DOCKER_REPO=pvizeli
# Don't run anything before this source as it sets PATH here
source /etc/profile
# load config
source /usr/sbin/resin-vars
source /etc/resin-supervisor/supervisor.conf
source /etc/hassio.conf
# Help function
function help {
cat << EOF
@ -194,6 +189,11 @@ while [[ $# > 0 ]]; do
shift
done
# load config
source /usr/sbin/resin-vars
source /etc/resin-supervisor/supervisor.conf
source /etc/hassio.conf
# Check that HostOS version was provided
if [ -z "$HOSTOS_VERSION" ]; then
if version=$(curl --silent $ENDPOINT | jq -e -r '.hassio_version'); then