2021-07-15 11:21:48 +02:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
|
|
# Source the helpers for use with the script
|
|
|
|
|
source $HELPER_SCRIPTS/install.sh
|
|
|
|
|
|
|
|
|
|
YQ_BINARY=yq_linux_amd64
|
|
|
|
|
|
|
|
|
|
# As per https://github.com/mikefarah/yq#wget
|
2022-02-08 19:41:23 +03:00
|
|
|
YQ_URL=$(get_github_package_download_url "mikefarah/yq" "endswith(\"$YQ_BINARY.tar.gz\")")
|
2021-07-15 11:21:48 +02:00
|
|
|
echo "Downloading latest yq from $YQ_URL"
|
|
|
|
|
|
|
|
|
|
download_with_retries "$YQ_URL" "/tmp" "${YQ_BINARY}.tar.gz"
|
|
|
|
|
tar xzf "/tmp/${YQ_BINARY}.tar.gz" -C "/tmp"
|
2021-07-21 16:15:34 +03:00
|
|
|
mv /tmp/${YQ_BINARY} /usr/bin/yq
|
2021-07-15 11:21:48 +02:00
|
|
|
|
|
|
|
|
invoke_tests "Tools" "yq"
|