build: fix zig tarball download url
This commit is contained in:
parent
095293993b
commit
9a633aa2a9
1 changed files with 1 additions and 4 deletions
3
zig
3
zig
|
@ -45,10 +45,7 @@ get_zig() {
|
||||||
(
|
(
|
||||||
mkdir -p "$ZIGDIR"
|
mkdir -p "$ZIGDIR"
|
||||||
cd "$ZIGDIR"
|
cd "$ZIGDIR"
|
||||||
TARBALL="https://ziglang.org/builds/$ZIGVER.tar.xz"
|
|
||||||
if [ "$OS" == "freebsd" ]; then
|
|
||||||
TARBALL="https://ziglang.org/download/$VERSION/$ZIGVER.tar.xz"
|
TARBALL="https://ziglang.org/download/$VERSION/$ZIGVER.tar.xz"
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d "$ZIGVER" ]; then
|
if [ ! -d "$ZIGVER" ]; then
|
||||||
curl "$TARBALL" | tar -xJ
|
curl "$TARBALL" | tar -xJ
|
||||||
|
|
Loading…
Add table
Reference in a new issue