X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=jq%2Finstall.sh;h=a15919db85370110cd548eb44b430abd582ae7f5;hb=46445e9382905a52e770d44191235be179616049;hp=1bb6cf0cbef53c8c0b2799ff7f7cde1de7485232;hpb=3a224e58f164d6783c7d1903648b488e6f2f1615;p=webi-installers%2F.git diff --git a/jq/install.sh b/jq/install.sh index 1bb6cf0..a15919d 100644 --- a/jq/install.sh +++ b/jq/install.sh @@ -1,3 +1,5 @@ +#!/bin/bash + { set -e set -u @@ -9,10 +11,10 @@ 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-::') + # '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-::') } }