Only attach TTY for hassio_cli wrapper when not completing command
This commit is contained in:
parent
21a9d0b3f3
commit
6f8714e900
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
# 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