From 324f46b5c4b0bdf63276e83aa62f9a60d14237cb Mon Sep 17 00:00:00 2001 From: Bao Date: Fri, 8 Dec 2023 03:14:39 -0600 Subject: [PATCH] Fix exit code when calling supervisor api with raw=true (#148) --- lib/api.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api.sh b/lib/api.sh index 841b7c1..c30663a 100644 --- a/lib/api.sh +++ b/lib/api.sh @@ -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')