Only attach TTY for hassio_cli wrapper when not completing command (#334)
This commit is contained in:
parent
21a9d0b3f3
commit
8dbfda2221
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# shellcheck disable=SC2048,SC2086
|
# shellcheck disable=SC2048,SC2086
|
||||||
|
|
||||||
docker exec -t hassio_cli ha $*
|
if [ "$1" != "__complete" ]; then
|
||||||
|
use_tty="-t"
|
||||||
|
else
|
||||||
|
use_tty=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker exec ${use_tty} hassio_cli ha $*
|
||||||
|
|
Loading…
Reference in a new issue