Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-12-02 13:56:54 +0400
committerFelix Fietkau <nbd@openwrt.org>2013-12-02 13:56:54 +0400
commit318d682d29a8974aa53bd7dc523f1514eb0eddb9 (patch)
tree415cd25a958156a3c305bcbdd693ba76fd2fd4ea /sh
parent9636c0e79c268437f2d562ceecc7295066095ae3 (diff)
jshn: in json_get_values(), handle json_select errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'sh')
-rw-r--r--sh/jshn.sh2
1 files changed, 1 insertions, 1 deletions
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
}