Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 1f4151c

Browse files
committed
fix links and ci
1 parent 8ed3437 commit 1f4151c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Currently there are(same with [setup-zig](https://github.com/mlugg/setup-zig/blo
4747

4848
You can also configure where to download `index.json` with `ASDF_ZIG_INDEX_URL` env var, it's https://ziglang.org/download/index.json by default. Availables:
4949

50-
- https://liujiacai.net/zigbuilds/index.json
50+
- https://fs.liujiacai.net/zigbuilds/index.json
5151

5252
## License
5353

bin/install

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ download_and_check() {
3636
local output=$2
3737
local expected_shasum=$3
3838

39+
echo "Download from $download_url"
3940
curl --fail --progress-bar --location --create-dirs --output "$output" "$url"
4041

4142
local actual_shasum
@@ -57,16 +58,14 @@ download_zig() {
5758
local start_index=$((RANDOM % mirror_length))
5859
# Loop through the mirrors
5960
for i in $(seq 0 $((mirror_length - 1))); do
60-
current_index=$(( (start_index + i) % mirror_length ))
61+
current_index=$(((start_index + i) % mirror_length))
6162
local current_mirror=${mirrors[$current_index]}
6263

6364
local current_url="${current_mirror}/${filename}?source=zigcc-asdf-zig"
64-
echo "Download from mirror $current_url"
6565
download_and_check "${current_url}" "$source_path" "$expected_shasum" && return 0
6666
done
6767

68-
echo "Download $download_url"
69-
if ! download_and_check "$download_url" "$source_path" "$expected_shasum";then
68+
if ! download_and_check "$download_url" "$source_path" "$expected_shasum"; then
7069
fail "Checksum not same, expected: ${expected_shasum}, actual: ${actual_shasum}, file: ${source_path}"
7170
fi
7271
}

0 commit comments

Comments
 (0)