check properly the error message to handle the error

This commit is contained in:
Nacho Codoñer
2024-07-12 14:24:50 +02:00
parent 86d56ffbd3
commit 1b60ae69bb

View File

@@ -1060,7 +1060,7 @@ main.registerCommand({
// Set GIT_TERMINAL_PROMPT=0 to disable prompting
const [okClone, errClone] =
await bash`GIT_TERMINAL_PROMPT=0 git clone --progress ${url} ${appPath}`;
if (errClone && !errClone.includes("Cloning into")) {
if (errClone && !errClone.message.includes("Cloning into")) {
throw new Error("error cloning skeleton");
}
// remove .git folder from the example