Pass ha command with quotes to CLI container (#1377)

When using quotes currently, they are not passed to HA due to $*. This
doesn't allow to use some commands properly, e.g. snapshot restore with
a passwort with spaces:

```
ha snapshot restore c31f3c93 --password "test test"
...
time="2021-05-26T11:24:19+02:00" level=fatal msg="Error while executing rootCmd: accepts 1 arg(s), received 2"
```

Properly pass all arguments using $@ in quotes.
This commit is contained in:
Stefan Agner 2021-05-26 14:16:43 +02:00 committed by GitHub
parent 8020671ca6
commit 6810659f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,5 +3,4 @@
# HA utility
# ==============================================================================
# shellcheck disable=SC2048,SC2086
docker exec hassio_cli ha $*
docker exec hassio_cli ha "$@"