Fix exit code when calling supervisor api with raw=true (#148)

This commit is contained in:
Bao 2023-12-08 03:14:39 -06:00 committed by GitHub
parent 8b96a704cc
commit 324f46b5c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@ function bashio::api.supervisor() {
if bashio::var.true "${raw}"; then
echo "${response}"
return "${__BASHIO_EXIT_NOK}"
return "${__BASHIO_EXIT_OK}"
fi
result=$(bashio::jq "${response}" 'if .data == {} then empty else .data end')