1
1
mirror of https://github.com/neosubhamoy/neodlp.git synced 2026-03-22 23:55:48 +05:30

2 Commits

View File

@@ -63,6 +63,7 @@ export function useLinuxRegisterer() {
console.log(`File ${file.source} copied successfully to ${destinationPath}`); console.log(`File ${file.source} copied successfully to ${destinationPath}`);
LOG.info("LINUX REGISTERER", `File ${file.source} copied successfully to ${destinationPath}`); LOG.info("LINUX REGISTERER", `File ${file.source} copied successfully to ${destinationPath}`);
if (file.content) { if (file.content) {
LOG.info("LINUX REGISTERER", `Writing content to ${destinationPath}: ${file.content}`);
const writeCommand = Command.create('echo', [file.content, '>', destinationPath]); const writeCommand = Command.create('echo', [file.content, '>', destinationPath]);
const writeOutput = await writeCommand.execute(); const writeOutput = await writeCommand.execute();
if (writeOutput.code === 0) { if (writeOutput.code === 0) {