From 2a42b97b7189c2e7298b3c0ce07f2dbfcb7ebecd Mon Sep 17 00:00:00 2001 From: John Freeman Date: Sun, 11 Aug 2024 21:02:29 +0100 Subject: [PATCH] Added utility shell scripts (#368) For querying sha256sums. --- go_versions_all.sh | 17 +++++++++++++++++ go_versions_stable.sh | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 go_versions_all.sh create mode 100755 go_versions_stable.sh diff --git a/go_versions_all.sh b/go_versions_all.sh new file mode 100755 index 0000000..133eff9 --- /dev/null +++ b/go_versions_all.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +curl -s 'https://go.dev/dl/?mode=json&include=all' | jq -r ' +[ + "Version", "Arch", "SHA256" +], +( + .[] | + .version as $version | + .files[] | + select(.os == "linux" and (.arch == "amd64" or .arch == "arm64" or .arch == "armv6l")) | + [ + $version, + .arch, + .sha256 + ] +) | @tsv' | column -t diff --git a/go_versions_stable.sh b/go_versions_stable.sh new file mode 100755 index 0000000..ef78767 --- /dev/null +++ b/go_versions_stable.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +curl -s 'https://go.dev/dl/?mode=json' | jq -r ' +[ + "Version", "Arch", "SHA256" +], +( + .[] | + .version as $version | + .files[] | + select(.os == "linux" and (.arch == "amd64" or .arch == "arm64" or .arch == "armv6l")) | + [ + $version, + .arch, + .sha256 + ] +) | @tsv' | column -t