🔧 Remove unnecessary escaping of single quotes in SFTP fallback logic
This commit is contained in:
@@ -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`
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user