From 68e1f8827ae671a36d0c7d4840ff1c35fd98273f Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Wed, 19 Jun 2024 11:08:12 +0200 Subject: [PATCH 1/2] fix: allow downloading release from builds directory --- bin/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install b/bin/install index e3753c0..8051e97 100755 --- a/bin/install +++ b/bin/install @@ -20,7 +20,7 @@ get_url() { else url=$( \ curl -s $BASE_URL \ - | sed -n 's/"tarball": "\(.*\/download\/.*zig-'"$platform"'-'"$arch"'-'"$version"'\.tar.*\)",/\1/p' \ + | sed -n 's/"tarball": "\(.*\/\(download\|builds\)\/.*zig-'"$platform"'-'"$arch"'-'"$version"'\.tar.*\)",/\1/p' \ ) fi From f6e7e534913488f06c045747b9370bc2c680063b Mon Sep 17 00:00:00 2001 From: Patrick Decat Date: Wed, 19 Jun 2024 11:29:45 +0200 Subject: [PATCH 2/2] fix: use sed extended regex for Mac OS compatibility --- bin/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install b/bin/install index 8051e97..4e630f6 100755 --- a/bin/install +++ b/bin/install @@ -20,7 +20,7 @@ get_url() { else url=$( \ curl -s $BASE_URL \ - | sed -n 's/"tarball": "\(.*\/\(download\|builds\)\/.*zig-'"$platform"'-'"$arch"'-'"$version"'\.tar.*\)",/\1/p' \ + | sed -E -n 's/"tarball": "(.*\/(download|builds)\/.*zig-'"$platform"'-'"$arch"'-'"$version"'\.tar.*)",/\1/p' \ ) fi