From 805595cc41e4f66d7ad8070e7b52b09cbb60de2f Mon Sep 17 00:00:00 2001 From: pvizeli Date: Tue, 28 Mar 2017 16:23:58 +0200 Subject: [PATCH] Fix hostcontroll script --- .../hassio-host-controll/hassio-host-controll/hassio-hc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta-hassio/recipes-support/hassio-host-controll/hassio-host-controll/hassio-hc b/meta-hassio/recipes-support/hassio-host-controll/hassio-host-controll/hassio-hc index 11c959559..796eea997 100644 --- a/meta-hassio/recipes-support/hassio-host-controll/hassio-host-controll/hassio-hc +++ b/meta-hassio/recipes-support/hassio-host-controll/hassio-host-controll/hassio-hc @@ -31,7 +31,7 @@ do continue fi if [ ${parse[0]} == "host-update" ]; then - if [ ${parse[@]} -eq 2]; then + if [ ! -z ${parse[1]} ]; then resinhub --hostos-version ${parse[1]} || true else resinhub || true @@ -39,8 +39,8 @@ do echo "OK" continue fi - if [ ${parse[0]} == "supevisor-update" ]; then - if [ ${parse[@]} -eq 2]; then + if [ ${parse[0]} == "supervisor-update" ]; then + if [ ! -z ${parse[1]} ]; then update-resin-supervisor --supervisor-tag ${parse[1]} || true else update-resin-supervisor || true