mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
fix git clone windows command
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user