build: make zig wrapper support nightly builds
This commit is contained in:
parent
afca8a86bc
commit
77cae58aeb
1 changed files with 3 additions and 1 deletions
4
zig
4
zig
|
@ -46,7 +46,9 @@ get_zig() {
|
||||||
mkdir -p "$ZIGDIR"
|
mkdir -p "$ZIGDIR"
|
||||||
cd "$ZIGDIR"
|
cd "$ZIGDIR"
|
||||||
TARBALL="https://ziglang.org/download/$VERSION/$ZIGVER.tar.xz"
|
TARBALL="https://ziglang.org/download/$VERSION/$ZIGVER.tar.xz"
|
||||||
|
if echo "$VERSION" | grep '\-dev\.' >&/dev/null; then
|
||||||
|
TARBALL="https://ziglang.org/builds/$ZIGVER.tar.xz"
|
||||||
|
fi
|
||||||
if [ ! -d "$ZIGVER" ]; then
|
if [ ! -d "$ZIGVER" ]; then
|
||||||
curl "$TARBALL" | tar -xJ
|
curl "$TARBALL" | tar -xJ
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue