mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-03 18:00:18 +00:00
23 lines
405 B
Bash
23 lines
405 B
Bash
#!/bin/bash
|
|
set -e
|
|
set -u
|
|
|
|
function __init_jq() {
|
|
|
|
##############
|
|
# Install jq #
|
|
##############
|
|
|
|
WEBI_SINGLE=true
|
|
|
|
pkg_get_current_version() {
|
|
# 'jq --version' has output in this format:
|
|
# jq-1.6
|
|
# This trims it down to just the version number:
|
|
# 1.6
|
|
echo $(jq --version 2> /dev/null | head -n 1 | sed 's:^jq-::')
|
|
}
|
|
}
|
|
|
|
__init_jq
|