mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 03:26:32 +00:00
Fix hostcontroll script
This commit is contained in:
parent
f9fa058cda
commit
805595cc41
@ -31,7 +31,7 @@ do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if [ ${parse[0]} == "host-update" ]; then
|
if [ ${parse[0]} == "host-update" ]; then
|
||||||
if [ ${parse[@]} -eq 2]; then
|
if [ ! -z ${parse[1]} ]; then
|
||||||
resinhub --hostos-version ${parse[1]} || true
|
resinhub --hostos-version ${parse[1]} || true
|
||||||
else
|
else
|
||||||
resinhub || true
|
resinhub || true
|
||||||
@ -39,8 +39,8 @@ do
|
|||||||
echo "OK"
|
echo "OK"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if [ ${parse[0]} == "supevisor-update" ]; then
|
if [ ${parse[0]} == "supervisor-update" ]; then
|
||||||
if [ ${parse[@]} -eq 2]; then
|
if [ ! -z ${parse[1]} ]; then
|
||||||
update-resin-supervisor --supervisor-tag ${parse[1]} || true
|
update-resin-supervisor --supervisor-tag ${parse[1]} || true
|
||||||
else
|
else
|
||||||
update-resin-supervisor || true
|
update-resin-supervisor || true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user