mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 20:11:24 +00:00
Fix bug to undefined method in jq.has_value (#77)
* Fix bug to undefined method in jq.has_value * Address shellcheck lint warning
This commit is contained in:
parent
74411cbd1c
commit
2bdf165666
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
# shellcheck disable=SC2034
|
||||
# shellcheck disable=SC2034,SC2155
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-ons: Bashio
|
||||
# Bashio is an bash function library for use with Home Assistant add-ons.
|
||||
|
|
|
@ -64,7 +64,7 @@ function bashio::jq.has_value() {
|
|||
value=$(bashio::jq "${data}" \
|
||||
"${filter} | if (. == {} or . == []) then empty else . end // empty")
|
||||
|
||||
if ! hass.has_value "${value}"; then
|
||||
if ! bashio::var.has_value "${value}"; then
|
||||
return "${__BASHIO_EXIT_NOK}"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue