From 6e76747f06c0b338acc93362f534b3829862203a Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Thu, 26 Feb 2026 22:07:20 +0530 Subject: [PATCH] fix: cp command string with sh --- src/helpers/use-linux-registerer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/use-linux-registerer.ts b/src/helpers/use-linux-registerer.ts index 106fd5a..8f8e3b9 100644 --- a/src/helpers/use-linux-registerer.ts +++ b/src/helpers/use-linux-registerer.ts @@ -58,7 +58,7 @@ export function useLinuxRegisterer() { const sourcePath = await join(resourceDirPath, file.source); const destinationPath = await join(homeDirPath, file.destination); const escapedContent = file.content?.replace(/'/g, `'\\''`) || ''; - const copyCommand = Command.create('sh', ['-c', 'cp', sourcePath, destinationPath]); + const copyCommand = Command.create('sh', ['-c', `cp "${sourcePath}" "${destinationPath}"`]); const writeCommand = Command.create('sh', ['-c', `printf '%s' '${escapedContent}' > "${destinationPath}"`]); if (file.content) {