mirror of
https://github.com/ziglang/zig.git
synced 2026-01-28 18:25:26 +00:00
ci: fix update-download-page and remove bashism
This commit is contained in:
parent
e81fda9823
commit
daa3e0bbb4
@ -15,12 +15,12 @@ VERSION="$1"
|
||||
OAUTH_TOKEN="$2"
|
||||
YML_FILE="tmp.yml"
|
||||
|
||||
if [[ -z "$VERSION" ]]; then
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "missing VERSION parameter"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -z "$OAUTH_TOKEN" ]]; then
|
||||
if [ -z "$OAUTH_TOKEN" ]; then
|
||||
echo "missing OAUTH_TOKEN parameter"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -74,7 +74,7 @@ fn render(
|
||||
try writer.writeAll(trimmed);
|
||||
}
|
||||
} else {
|
||||
std.debug.warn("line {d}: missing variable: {s}\n", .{ line, var_name });
|
||||
std.debug.print("line {d}: missing variable: {s}\n", .{ line, var_name });
|
||||
try writer.writeAll("(missing)");
|
||||
}
|
||||
state = State.EndBrace;
|
||||
@ -86,7 +86,7 @@ fn render(
|
||||
state = State.Start;
|
||||
},
|
||||
else => {
|
||||
std.debug.warn("line {d}: invalid byte: '0x{x}'", .{ line, byte });
|
||||
std.debug.print("line {d}: invalid byte: '0x{x}'", .{ line, byte });
|
||||
std.process.exit(1);
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user