Skip to content

Commit

Permalink
Fix exit code when calling supervisor api with raw=true (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
baodrate authored Dec 8, 2023
1 parent 8b96a70 commit 324f46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 324f46b

Please sign in to comment.