mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 15:36:29 +00:00
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:
parent
8020671ca6
commit
6810659f9b
@ -3,5 +3,4 @@
|
||||
# HA utility
|
||||
# ==============================================================================
|
||||
|
||||
# shellcheck disable=SC2048,SC2086
|
||||
docker exec hassio_cli ha $*
|
||||
docker exec hassio_cli ha "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user