{"draft":null,"from":45,"to":318,"files":[{"path":"client/src/box-commands.ts","added":5,"removed":6,"diff":"--- a/client/src/box-commands.ts\n+++ b/client/src/box-commands.ts\n@@ -106,8 +106,7 @@\n \t\t\t: [[box, local] as const];\n \t\tfor (const [path, from] of files) {\n \t\t\tconst text = readText(from);\n-\t\t\tconst data =\n-\t\t\t\ttext !== undefined && text.includes(\"\\r\") ? Buffer.from(text.replace(/\\r\\n?/g, \"\\n\")) : readFileSync(from);\n+\t\t\tconst data = text?.includes(\"\\r\") ? Buffer.from(text.replace(/\\r\\n?/g, \"\\n\")) : readFileSync(from);\n \t\t\tconst exec = (statSync(from).mode & 0o111) !== 0 || (data[0] === 0x23 && data[1] === 0x21);\n \t\t\tout.push({ path, data, ...(exec ? { mode: 0o755 } : {}) });\n \t\t}\n@@ -308,7 +307,7 @@\n \t}\n \t// avcs's own lines (on stderr); --quiet drops them, and the box's stdout and stderr stay as they are (#37).\n \tconst notice = bool(args, \"quiet\") ? (_text: string): void => {} : (env.writeErr ?? env.write);\n-\t// What the box said about its prep (X-Avcs-Prep): null when it has none.\n+\t// What the box said about its prep (X-Abso-Prep): null when it has none.\n \tlet prepState: string | null | undefined;\n \tconst posix = undoGitBashPaths(args.positionals, env.env);\n \tif (posix.undone.length > 0) {\n@@ -364,7 +363,7 @@\n \t\t\tcontinue;\n \t\t}\n \t\t// Text goes as abso records it, with LF line endings: a CRLF script fails in the box's sh (#37).\n-\t\tconst lf = d.text !== undefined && d.text.includes(\"\\r\") ? Buffer.from(d.text.replace(/\\r\\n?/g, \"\\n\")) : undefined;\n+\t\tconst lf = d.text?.includes(\"\\r\") ? Buffer.from(d.text.replace(/\\r\\n?/g, \"\\n\")) : undefined;\n \t\tif (lf !== undefined) toLf.push(rel);\n \t\tconst data = lf ?? readFileSync(path);\n \t\t// The bit from the disk, or (on Windows) from the server; a script with \"#!\" runs either way.\n@@ -517,10 +516,10 @@\n  * (ABSO_BOX=2 in its environment), so their runs don't wait on each other.\n  */\n /**\n- * What this folder last heard about a box's prep: a run's X-Avcs-Prep, or\n+ * What this folder last heard about a box's prep: a run's X-Abso-Prep, or\n  * abso prep and prep --forget. null means no prep; undefined, never heard. So\n  * publish --check can refuse before running a check that can't be trusted\n- * (#37, Artist 1: a 40 s suite ran, then was refused).\n+ * (#37: a 40 s suite ran, then was refused).\n  */\n function prepFile(root: string): string {\n \treturn join(stateDir(root), \"box-prep.json\");"}],"unmatched":[]}