aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-12-04 14:20:46 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-12-04 14:20:46 -0700
commitdaa3e0bbb4bcd3f79d5e20f574b5adffc07be7d0 (patch)
tree367fcc56866d96194a9d5fa75ea557238d459050
parente81fda982372061fca56c7e43d1df1653446d2a8 (diff)
downloadzig-daa3e0bbb4bcd3f79d5e20f574b5adffc07be7d0.tar.gz
zig-daa3e0bbb4bcd3f79d5e20f574b5adffc07be7d0.zip
ci: fix update-download-page and remove bashism
-rwxr-xr-xci/srht/on_master_success4
-rw-r--r--ci/srht/update-download-page.zig4
2 files changed, 4 insertions, 4 deletions
diff --git a/ci/srht/on_master_success b/ci/srht/on_master_success
index e565a1e3a8..7d3c4e955e 100755
--- a/ci/srht/on_master_success
+++ b/ci/srht/on_master_success
@@ -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
diff --git a/ci/srht/update-download-page.zig b/ci/srht/update-download-page.zig
index daaee18faf..ccf998a186 100644
--- a/ci/srht/update-download-page.zig
+++ b/ci/srht/update-download-page.zig
@@ -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);
},
},