Skip to content

Commit

Permalink
fix: jq installation arm (argoproj#6269)
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Reichart <[email protected]>
  • Loading branch information
KaiReichart authored May 19, 2021
1 parent 3f32a75 commit 748126e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/installers/install-jq-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ set -eux -o pipefail
case $ARCHITECTURE in
arm64)
export TARGET_FILE=jq_${jq_version}-1_${ARCHITECTURE}.deb
http://ports.ubuntu.com/ubuntu-ports/pool/universe/j/jq/jq_${jq_version}-1_${ARCHITECTURE}.deb
[ -e $DOWNLOADS/${TARGET_FILE} ] || curl -sLf --retry 3 -o $DOWNLOADS/${TARGET_FILE} http://ports.ubuntu.com/ubuntu-ports/pool/universe/j/jq/jq_${jq_version}-1_${ARCHITECTURE}.deb
$(dirname $0)/compare-chksum.sh
sudo dpkg --fsys-tarfile ${TARGET_FILE} | tar xOf - ./usr/bin/jq > $BIN/jq
sudo dpkg --fsys-tarfile $DOWNLOADS/${TARGET_FILE} | tar xOf - ./usr/bin/jq > $BIN/jq
;;
arm)
ARCHITECTURE=armhf
export TARGET_FILE=jq_${jq_version}-1_${ARCHITECTURE}.deb
http://ports.ubuntu.com/ubuntu-ports/pool/universe/j/jq/jq_${jq_version}-1_${ARCHITECTURE}.deb
[ -e $DOWNLOADS/${TARGET_FILE} ] || curl -sLf --retry 3 -o $DOWNLOADS/${TARGET_FILE} http://ports.ubuntu.com/ubuntu-ports/pool/universe/j/jq/jq_${jq_version}-1_${ARCHITECTURE}.deb
$(dirname $0)/compare-chksum.sh
sudo dpkg --fsys-tarfile ${TARGET_FILE} | tar xOf - ./usr/bin/jq > $BIN/jq
;;
Expand Down

0 comments on commit 748126e

Please sign in to comment.