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"...@@ -15,12 +15,12 @@ VERSION="$1"
15OAUTH_TOKEN="$2"15OAUTH_TOKEN="$2"
16YML_FILE="tmp.yml"16YML_FILE="tmp.yml"
1717
18if [[ -z "$VERSION" ]]; then18if [ -z "$VERSION" ]; then
19 echo "missing VERSION parameter"19 echo "missing VERSION parameter"
20 exit 120 exit 1
21fi21fi
2222
23if [[ -z "$OAUTH_TOKEN" ]]; then23if [ -z "$OAUTH_TOKEN" ]; then
24 echo "missing OAUTH_TOKEN parameter"24 echo "missing OAUTH_TOKEN parameter"
25 exit 125 exit 1
26fi26fi
ci/srht/update-download-page.zig+2-2
...@@ -74,7 +74,7 @@ fn render(...@@ -74,7 +74,7 @@ fn render(
74 try writer.writeAll(trimmed);74 try writer.writeAll(trimmed);
75 }75 }
76 } else {76 } 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 });
78 try writer.writeAll("(missing)");78 try writer.writeAll("(missing)");
79 }79 }
80 state = State.EndBrace;80 state = State.EndBrace;
...@@ -86,7 +86,7 @@ fn render(...@@ -86,7 +86,7 @@ fn render(
86 state = State.Start;86 state = State.Start;
87 },87 },
88 else => {88 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 });
90 std.process.exit(1);90 std.process.exit(1);
91 },91 },
92 },92 },