diff --git a/src/bin/sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.ts b/src/bin/sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.ts index 243f905c..88c65f39 100644 --- a/src/bin/sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.ts +++ b/src/bin/sync-extensions/getExtensionModuleFileSourceCodeReadyToBeCopied.ts @@ -45,12 +45,12 @@ export async function getExtensionModuleFileSourceCodeReadyToBeCopied(params: { `This file has been claimed for ownership from ${extensionModuleName} version ${extensionModuleVersion}.`, `To relinquish ownership and restore this file to its original content, run the following command:`, ``, - `$ npx keycloakify own --path '${path}' --revert` + `$ npx keycloakify own --path "${path}" --revert` ] : [ `WARNING: Before modifying this file, run the following command:`, ``, - `$ npx keycloakify own --path '${path}'`, + `$ npx keycloakify own --path "${path}"`, ``, `This file is provided by ${extensionModuleName} version ${extensionModuleVersion}.`, `It was copied into your repository by the postinstall script: \`keycloakify sync-extensions\`.` diff --git a/src/bin/tools/getAbsoluteAndInOsFormatPath.ts b/src/bin/tools/getAbsoluteAndInOsFormatPath.ts index bcabbd40..09a73f63 100644 --- a/src/bin/tools/getAbsoluteAndInOsFormatPath.ts +++ b/src/bin/tools/getAbsoluteAndInOsFormatPath.ts @@ -14,6 +14,8 @@ export function getAbsoluteAndInOsFormatPath(params: { let pathOut = pathIsh; + pathOut = pathOut.replace(/^['"]/, "").replace(/['"]$/, ""); + pathOut = pathOut.replace(/\//g, pathSep); if (pathOut.startsWith("~")) {