🔧 Remove unnecessary escaping of single quotes in SFTP fallback logic

This commit is contained in:
2026-01-28 05:26:43 +00:00
parent 1c40fca61d
commit 2d28f30578

View File

@@ -364,7 +364,6 @@ async function deploy() {
` ⚠️ SFTP failed for ${path.basename(file.local)}, using cat fallback...` ` ⚠️ SFTP failed for ${path.basename(file.local)}, using cat fallback...`
); );
const fileContent = fs.readFileSync(file.local, 'utf8'); const fileContent = fs.readFileSync(file.local, 'utf8');
const escapedContent = fileContent.replace(/'/g, "'\\''");
const catResult = await ssh.execCommand( const catResult = await ssh.execCommand(
`cat > '${file.remote}' << 'EOFMARKER'\n${fileContent}\nEOFMARKER` `cat > '${file.remote}' << 'EOFMARKER'\n${fileContent}\nEOFMARKER`
); );