build: fix zig download tarball url

This commit is contained in:
CJ van den Berg 2024-09-23 13:09:22 +02:00
parent c8e49e9cb8
commit 458a5fe4cb
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

3
zig
View file

@ -45,10 +45,7 @@ get_zig() {
(
mkdir -p "$ZIGDIR"
cd "$ZIGDIR"
TARBALL="https://ziglang.org/builds/$ZIGVER.tar.xz"
if [ "$OS" == "freebsd" ]; then
TARBALL="https://ziglang.org/download/$VERSION/$ZIGVER.tar.xz"
fi
if [ ! -d "$ZIGVER" ]; then
curl "$TARBALL" | tar -xJ