ns-install: Add jq(1) bootstrap - scripts - various script and utils
HTML git clone git://z3bra.org/scripts
DIR Log
DIR Files
DIR Refs
---
DIR commit 06d62744d321bfd2c52b8e80e41222132c2b8383
DIR parent 5aac3f8aa0167d0add765c21b26d69aab27f672e
HTML Author: Willy Goiffon <dev@z3bra.org>
Date: Sat, 29 Aug 2026 07:29:41 +0000
ns-install: Add jq(1) bootstrap
Diffstat:
M ns-install | 10 ++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)
---
DIR diff --git a/ns-install b/ns-install
@@ -97,6 +97,16 @@ install_nodejs() {
rm -rf $tmp
}
+# https://jqlang.org
+install_jq() {
+ d="$1"
+ u="https://github.com/jqlang/jq/releases/download"
+ a="linux-amd64"
+ v=$(curl -sSfL "https://jqlang.org"|awk '/Download jq [0-9.]+/{print $3}')
+ curl -sSfL "$u/jq-${v}/jq-${a}" -o $root/bin/jq
+ chmod +x $root/bin/jq
+}
+
list_pkg() {
sed -rn 's/^install_(.*)\(\) \{/\1/p' "$0"|sort
}