From 3c855461b603aefb7830c170072aa09d00d67c1c Mon Sep 17 00:00:00 2001 From: mawkone Date: Wed, 3 Jun 2026 15:35:58 -0700 Subject: [PATCH] fix(frontend): replace non-POSIX <<< redirect in fs_edit with pipeline --- vibn-frontend/app/api/mcp/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vibn-frontend/app/api/mcp/route.ts b/vibn-frontend/app/api/mcp/route.ts index e6aff6b..559b941 100644 --- a/vibn-frontend/app/api/mcp/route.ts +++ b/vibn-frontend/app/api/mcp/route.ts @@ -5050,7 +5050,7 @@ print(n)`; const b64 = Buffer.from(JSON.stringify(payload), "utf8").toString("base64"); const pyB64 = Buffer.from(py, "utf8").toString("base64"); - const cmd = `python3 -c "$(printf %s ${shq(pyB64)} | base64 -d)" <<< "$(printf %s ${shq(b64)} | base64 -d)" && echo "---" && sha256sum ${shq(path)} | cut -d' ' -f1 && wc -c < ${shq(path)}`; + const cmd = `printf %s ${shq(b64)} | base64 -d | python3 -c "$(printf %s ${shq(pyB64)} | base64 -d)" && echo "---" && sha256sum ${shq(path)} | cut -d' ' -f1 && wc -c < ${shq(path)}`; const r = await runFsCmd(principal, project, cmd); if (r.code !== 0) {