Skip to content

Commit

Permalink
circleci- add missing sudos in download_zig
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Aug 8, 2021
1 parent 8e061b5 commit e624d9b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions download_zig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ file="$dir.tar.xz"
cd /

if [[ $1 == *"dev"* ]]; then
wget https://ziglang.org/builds/$file
sudo wget https://ziglang.org/builds/$file
else
wget https://ziglang.org/download/$version/$file
sudo wget https://ziglang.org/download/$version/$file
fi

tar -xf $file
ln -s /$dir/zig /usr/local/bin
sudo tar -xf $file
sudo ln -s /$dir/zig /usr/local/bin

# download Zigmod

curl -s 'https://api.github.com/repos/nektro/zigmod/releases' \
| jq -r '.[0].assets[].browser_download_url' \
| grep $(uname -m) \
| grep -i $(uname -s) \
| wget -i - -O /usr/local/bin/zigmod
| sudo wget -i - -O /usr/local/bin/zigmod

chmod +x /usr/local/bin/zigmod
sudo chmod +x /usr/local/bin/zigmod

0 comments on commit e624d9b

Please sign in to comment.