We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f84cef1 commit 510e6a3Copy full SHA for 510e6a3
src/nerdbank-gitversioning.npm/ts/index.ts
@@ -43,7 +43,7 @@ export interface IGitVersion {
43
export async function getVersion(projectDirectory?: string): Promise<IGitVersion> {
44
projectDirectory = projectDirectory || '.';
45
var getVersionScriptPath = path.join(__dirname, nbgvPath, "tools", "Get-Version.ps1");
46
- var versionText = await execAsync(`powershell -ExecutionPolicy Bypass -Command (${getVersionScriptPath} -ProjectDirectory "${projectDirectory}")`)
+ var versionText = await execAsync(`powershell -ExecutionPolicy Bypass -Command "& '${getVersionScriptPath}' -ProjectDirectory '${projectDirectory}'"`)
47
if (versionText.stderr) {
48
throw versionText.stderr;
49
}
0 commit comments