fix golang issue

This commit is contained in:
CanbiZ 2025-04-01 11:18:12 +02:00
parent 810eadd398
commit 24a5442e44
11 changed files with 17 additions and 17 deletions

View file

@ -22,7 +22,7 @@ msg_info "Installing Golang"
set +o pipefail
temp_file=$(mktemp)
golang_tarball=$(curl -fsSL https://go.dev/dl/ | grep -oP 'go[\d\.]+\.linux-amd64\.tar\.gz' | head -n 1)
curl -fsSL "https://golang.org/dl/"$golang_tarball" -o ""$temp_file""
curl -fsSL "https://golang.org/dl/${golang_tarball}" -o "$temp_file"
tar -C /usr/local -xzf "$temp_file"
ln -sf /usr/local/go/bin/go /usr/local/bin/go
rm -f "$temp_file"
@ -42,4 +42,4 @@ customize
msg_info "Cleaning up"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"
msg_ok "Cleaned"