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:
Diffstat (limited to 'sh')
-rw-r--r--sh/jshn.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/sh/jshn.sh b/sh/jshn.sh
index 0b0c754..39d5331 100644
--- a/sh/jshn.sh
+++ b/sh/jshn.sh
@@ -244,3 +244,10 @@ json_select() {
;;
esac
}
+
+json_is_a() {
+ local type
+
+ json_get_type type "$1"
+ [ "$type" = "$2" ]
+}