authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-04 14:20:46-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-04 14:20:46-07:00
logdaa3e0bbb4bcd3f79d5e20f574b5adffc07be7d0
tree367fcc56866d96194a9d5fa75ea557238d459050
parente81fda982372061fca56c7e43d1df1653446d2a8

ci: fix update-download-page and remove bashism


2 files changed, 4 insertions(+), 4 deletions(-)

ci/srht/on_master_success+2-2
......@@ -15,12 +15,12 @@ VERSION="$1"
1515OAUTH_TOKEN="$2"
1616YML_FILE="tmp.yml"
1717
18if [[ -z "$VERSION" ]]; then
18if [ -z "$VERSION" ]; then
1919 echo "missing VERSION parameter"
2020 exit 1
2121fi
2222
23if [[ -z "$OAUTH_TOKEN" ]]; then
23if [ -z "$OAUTH_TOKEN" ]; then
2424 echo "missing OAUTH_TOKEN parameter"
2525 exit 1
2626fi
ci/srht/update-download-page.zig+2-2
......@@ -74,7 +74,7 @@ fn render(
7474 try writer.writeAll(trimmed);
7575 }
7676 } else {
77 std.debug.warn("line {d}: missing variable: {s}\n", .{ line, var_name });
77 std.debug.print("line {d}: missing variable: {s}\n", .{ line, var_name });
7878 try writer.writeAll("(missing)");
7979 }
8080 state = State.EndBrace;
......@@ -86,7 +86,7 @@ fn render(
8686 state = State.Start;
8787 },
8888 else => {
89 std.debug.warn("line {d}: invalid byte: '0x{x}'", .{ line, byte });
89 std.debug.print("line {d}: invalid byte: '0x{x}'", .{ line, byte });
9090 std.process.exit(1);
9191 },
9292 },