fix(docker): correct awk quoting in Docker GPG fingerprint check (#32153)

This commit is contained in:
苏敏童0668001043
2026-03-03 09:46:06 +08:00
committed by Peter Steinberger
parent 895abc5a64
commit b29e913efe
2 changed files with 7 additions and 1 deletions

View File

@@ -27,4 +27,10 @@ describe("Dockerfile", () => {
expect(dockerfile).toContain('find "$dir" -type d -exec chmod 755 {} +');
expect(dockerfile).toContain('find "$dir" -type f -exec chmod 644 {} +');
});
it("Docker GPG fingerprint awk uses correct quoting for OPENCLAW_SANDBOX=1 build", async () => {
const dockerfile = await readFile(dockerfilePath, "utf8");
expect(dockerfile).toContain('== "fpr" {');
expect(dockerfile).not.toContain('\\"fpr\\"');
});
});