From: Felix Fietkau Date: Mon, 2 Dec 2013 09:56:54 +0000 (+0100) Subject: jshn: in json_get_values(), handle json_select errors X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=318d682d29a8974aa53bd7dc523f1514eb0eddb9;p=oweals%2Flibubox.git jshn: in json_get_values(), handle json_select errors Signed-off-by: Felix Fietkau --- diff --git a/sh/jshn.sh b/sh/jshn.sh index 176063f..70b7976 100644 --- a/sh/jshn.sh +++ b/sh/jshn.sh @@ -209,7 +209,7 @@ json_get_values() { unset "$_v_dest" [ -n "$2" ] && { - json_select "$2" + json_select "$2" || return 1 _select=1 }