mirror of
https://github.com/neosubhamoy/neodlp.git
synced 2026-03-22 23:55:48 +05:30
Compare commits
2 Commits
b3d99f3334
...
f2bd8bd4df
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user