dev: CI: keep string terminator when updating Zig version for Windows

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-05-31 05:01:34 -07:00
parent 1eab0539d1
commit 1af3ae02bf

View file

@ -6,7 +6,7 @@ update_zig() {
gsed -i 's|\(Currently tested with: \).*|\1'"$1"'|' $2 gsed -i 's|\(Currently tested with: \).*|\1'"$1"'|' $2
gsed -i 's|\(https://ziglang.org/builds/zig-[^/ -]*-[^/ -]*-\)[^/ ]*\(\(\.tar\.xz\)[^/ ]*\)|\1'"$1"'\2|' $2 gsed -i 's|\(https://ziglang.org/builds/zig-[^/ -]*-[^/ -]*-\)[^/ ]*\(\(\.tar\.xz\)[^/ ]*\)|\1'"$1"'\2|' $2
gsed -i 's|\(https://ziglang.org/builds/zig-[^/ -]*-[^/ -]*-\)[^/ ]*\(\(\.zip\)[^/ ]*\)|\1'"$1"'\2|' $2 gsed -i 's|\(https://ziglang.org/builds/zig-[^/ -]*-[^/ -]*-\)[^/ ]*\(\(\.zip\)[^/ ]*\)|\1'"$1"'\2|' $2
gsed -i 's|\(C:\\zig-[^/ -]*-[^/ -]*-\)[^/ \\]*\(.*\)"|\1'"$1"'\2|' $2 gsed -i 's|\(C:\\zig-[^/ -]*-[^/ -]*-\)[^/ \\]*\(.*"\)|\1'"$1"'\2|' $2
} }
if [ -n "${ZIG_VERSION:-}" ]; then if [ -n "${ZIG_VERSION:-}" ]; then