jshn: in json_get_values(), handle json_select errors

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2013-12-02 10:56:54 +01:00
parent 9636c0e79c
commit 318d682d29

View file

@ -209,7 +209,7 @@ json_get_values() {
unset "$_v_dest"
[ -n "$2" ] && {
json_select "$2"
json_select "$2" || return 1
_select=1
}