fix git clone windows command

This commit is contained in:
Nacho Codoñer
2024-07-15 15:16:22 +02:00
parent 624d72a7c3
commit 344dea1d5e

View File

@@ -1054,7 +1054,7 @@ main.registerCommand({
const isWindows = process.platform === "win32";
// Set GIT_TERMINAL_PROMPT=0 to disable prompting
const gitCommand = isWindows
? `set GIT_TERMINAL_PROMPT=0 && git clone --progress ${url} ${appPath}`
? `$env:GIT_TERMINAL_PROMPT=0; git clone --progress ${url} ${appPath}`
: `GIT_TERMINAL_PROMPT=0 git clone --progress ${url} ${appPath}`;
const [okClone, errClone] = await bash`${gitCommand}`;
const errorMessage = errClone && typeof errClone === "string" ? errClone : errClone?.message;