updated go version
This commit is contained in:
parent
94d11f34ee
commit
e107708a58
1 changed files with 5 additions and 1 deletions
|
|
@ -14,12 +14,15 @@ bootstrap="${install_dir}/bootstrap-${v14}"
|
|||
tgz14="${v14}.tar.gz"
|
||||
path_v14="${install_dir}/${tgz14}"
|
||||
|
||||
v="${1-1.17.4}"
|
||||
v="${1-1.18.2}"
|
||||
case "${v}" in
|
||||
1.16.7) new_sum="07502f16366fbc697b1b09b842d29116e6d6607c9dc42b1d7c54b96f528c7952";;
|
||||
1.17.1) new_sum="670ce36e100669f9be572a1603858ce4a64eb4b21a31fa5cdefb778609c40337";;
|
||||
1.17.2) new_sum="022fe1f533432a305db705448f50f9a3ea369586dc32d07219b1bc7db1e01577";;
|
||||
1.17.4) new_sum="91736588a47917aaa424dfdf482d8efcb44403a768e7a947c272a98881053386";;
|
||||
1.17.6) new_sum="de00bf818cda9e4712e9b3438c9c3d4f8318beb598d11abb0ba9d515883f6320";;
|
||||
1.18) new_sum="63e5cab48f97c63dc2737eb35582316acf77084d109ac0571651cedaf40987c0";;
|
||||
1.18.2) new_sum="b76e590857060fdc575a37d4204c15df33de6d23e49d5cf9bdce93083e4dcddb";;
|
||||
*) errx "no hash found for version ${v}";;
|
||||
esac
|
||||
|
||||
|
|
@ -39,6 +42,7 @@ fi
|
|||
|
||||
if [[ ! -d "${new_dir}" ]]; then
|
||||
curl -sSL "${url}/${tgznew}" >${path_new}
|
||||
[[ -z "${new_sum}" ]] && { sha256sum ${path_new}|cut -d" " -f1; exit 0; }
|
||||
[[ "$(sha256sum ${path_new}|cut -d" " -f1)" != "${new_sum}" ]] && errx "wrong checksum: ${path_new}"
|
||||
tar xfz ${path_new} -C ${install_dir}
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue