jshn: in json_get_values(), handle json_select errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
9636c0e79c
commit
318d682d29
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ json_get_values() {
|
|||
|
||||
unset "$_v_dest"
|
||||
[ -n "$2" ] && {
|
||||
json_select "$2"
|
||||
json_select "$2" || return 1
|
||||
_select=1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue