fix(frontend): replace non-POSIX <<< redirect in fs_edit with pipeline
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user