| author | |
| committer | |
| log | c39d45ad74461ada6e4d58ab4f7c251dd38320dd |
| tree | 094bd438bb24c70084dd4b55357a40af9c00c54d |
| parent | 2b50d632be44108a0b994500070d8ae7c9271765 |
1 files changed, 7 insertions(+), 1 deletions(-)
download_zig.sh+7-1| ... | ... | @@ -11,6 +11,12 @@ dir="zig-$os-$arch-$version" |
| 11 | 11 | file="$dir.tar.xz" |
| 12 | 12 | |
| 13 | 13 | cd / |
| 14 | wget https://ziglang.org/download/$version/$file | |
| 15 | 14 | tar -xf $file |
| 16 | 15 | ln -s /$dir/zig /usr/local/bin |
| 16 | ||
| 17 | if [[ $1 == *"dev"* ]]; then | |
| 18 | wget https://ziglang.org/builds/$file | |
| 19 | else | |
| 20 | wget https://ziglang.org/download/$version/$file | |
| 21 | fi | |
| 22 |