Skip to content

Commit 324f46b

Browse files
authored
Fix exit code when calling supervisor api with raw=true (#148)
1 parent 8b96a70 commit 324f46b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function bashio::api.supervisor() {
9393

9494
if bashio::var.true "${raw}"; then
9595
echo "${response}"
96-
return "${__BASHIO_EXIT_NOK}"
96+
return "${__BASHIO_EXIT_OK}"
9797
fi
9898

9999
result=$(bashio::jq "${response}" 'if .data == {} then empty else .data end')

0 commit comments

Comments
 (0)