mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 20:11:24 +00:00
Fix exit code when calling supervisor api with raw=true (#148)
This commit is contained in:
parent
8b96a704cc
commit
324f46b5c4
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ function bashio::api.supervisor() {
|
||||||
|
|
||||||
if bashio::var.true "${raw}"; then
|
if bashio::var.true "${raw}"; then
|
||||||
echo "${response}"
|
echo "${response}"
|
||||||
return "${__BASHIO_EXIT_NOK}"
|
return "${__BASHIO_EXIT_OK}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
result=$(bashio::jq "${response}" 'if .data == {} then empty else .data end')
|
result=$(bashio::jq "${response}" 'if .data == {} then empty else .data end')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue