argo-cd/hack/installers/install-jq-linux.sh
jannfis 66f36ff002
chore: Validate checksums of downloaded files in build chain (#6057)
* chore: Validate checksums of downloaded files in build chain

Signed-off-by: jannfis <jann@mistrust.net>

* Fix arm install of kustomize

Signed-off-by: jannfis <jann@mistrust.net>

* Add sudo package to Go builder image

Signed-off-by: jannfis <jann@mistrust.net>
2021-04-19 18:46:21 +02:00

11 lines
No EOL
381 B
Bash
Executable file

#!/bin/bash
set -eux -o pipefail
. $(dirname $0)/../tool-versions.sh
export TARGET_FILE=jq-${jq_version}-linux-amd64
[ -e $DOWNLOADS/${TARGET_FILE} ] || curl -sLf --retry 3 -o $DOWNLOADS/${TARGET_FILE} https://github.com/stedolan/jq/releases/download/jq-${jq_version}/jq-linux64
$(dirname $0)/compare-chksum.sh
sudo install -m 0755 $DOWNLOADS/${TARGET_FILE} $BIN/jq
jq --version