Fix scripts/download-zig.sh (#7364)

* fix: scripts/download-zig.sh file is not gzipped

* fix: scripts/download-zig.sh Linux x86_64 arch var
This commit is contained in:
Joey Wendt
2023-11-29 02:52:59 -06:00
committed by GitHub
parent 666e615889
commit 98885279eb

View File

@@ -29,7 +29,7 @@ case $(uname -ms) in
;;
'Linux x86_64')
target='linux'
arch='aarch64'
arch='x86_64'
;;
*)
printf "error: cannot get platform name from '%s'\n" "${unamestr}"
@@ -79,7 +79,7 @@ fi
rm -rf "${extract_at}"
mkdir -p "${extract_at}"
tar -xzf "${dest}" -C "${extract_at}" --strip-components=1
tar -xf "${dest}" -C "${extract_at}" --strip-components=1
echo "${url}" > "${extract_at}/.version"