Skip to content

Commit 21cda20

Browse files
authored
Merge pull request #9 from pdecat/feat/exact_version
feat: allow installing exact version
2 parents 5569af9 + cbd29d9 commit 21cda20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/install

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ get_url() {
1515
curl -s $BASE_URL \
1616
| sed -n 's/"tarball": "\(.*\/builds\/.*zig-'"$platform"'-'"$arch"'-[0-9\.]*.*\)",/\1/p' \
1717
)
18+
elif [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+-dev.[0-9]+\+[0-9a-f]+$ ]]; then
19+
url="https://ziglang.org/builds/zig-$platform-$arch-$version.tar.xz"
1820
else
1921
url=$( \
2022
curl -s $BASE_URL \

0 commit comments

Comments
 (0)