projects
/
webi-installers
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add jq
[webi-installers/.git]
/
jq
/
install.sh
1
{
2
set -e
3
set -u
4
5
##############
6
# Install jq #
7
##############
8
9
WEBI_SINGLE=true
10
11
pkg_get_current_version() {
12
# 'jq --version' has output in this format:
13
# jq-1.6
14
# This trims it down to just the version number:
15
# 1.6
16
echo $(jq --version 2>/dev/null | head -n 1 | sed 's:^jq-::')
17
}
18
}