Files
vim-ale/jq/install.sh
AJ ONeal 6314667c78 cleanup
2020-07-05 01:12:17 +00:00

21 lines
370 B
Bash

#!/bin/bash
{
set -e
set -u
##############
# 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-::')
}
}