diff --git a/src-tauri/capabilities/shell.json b/src-tauri/capabilities/shell.json index 85d90e1..43ea75f 100644 --- a/src-tauri/capabilities/shell.json +++ b/src-tauri/capabilities/shell.json @@ -71,8 +71,8 @@ "args": true }, { - "name": "cat", - "cmd": "cat", + "name": "echo", + "cmd": "echo", "args": true } ] diff --git a/src/helpers/use-linux-registerer.ts b/src/helpers/use-linux-registerer.ts index eb17bbb..dc8dcfc 100644 --- a/src/helpers/use-linux-registerer.ts +++ b/src/helpers/use-linux-registerer.ts @@ -63,7 +63,8 @@ export function useLinuxRegisterer() { console.log(`File ${file.source} copied successfully to ${destinationPath}`); LOG.info("LINUX REGISTERER", `File ${file.source} copied successfully to ${destinationPath}`); if (file.content) { - const writeCommand = Command.create('cat', ['>', destinationPath, '<<', 'EOF', file.content, 'EOF']); + LOG.info("LINUX REGISTERER", `Writing content to ${destinationPath}: ${file.content}`); + const writeCommand = Command.create('echo', [file.content, '>', destinationPath]); const writeOutput = await writeCommand.execute(); if (writeOutput.code === 0) { console.log(`Content written successfully to ${destinationPath}`);