🔧 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...`
|
||||
);
|
||||
const fileContent = fs.readFileSync(file.local, 'utf8');
|
||||
const escapedContent = fileContent.replace(/'/g, "'\\''");
|
||||
const catResult = await ssh.execCommand(
|
||||
`cat > '${file.remote}' << 'EOFMARKER'\n${fileContent}\nEOFMARKER`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user