Add a broke command: typing broke in a new Terminal starts it again (#1)
This commit is contained in:
1 parent
af66279940
commit
0d9ccfa209
3 files changed
+10
-3
No files matched your search
+1
-1
@@ -65,7 +65,7 @@ for (let i = 0; i < 60; i++) {
|
||||
await new Promise((r) => setTimeout(r, 1000));
|
||||
const up = await fetch(url, { redirect: "manual" }).then(() => true, () => false);
|
||||
if (!up) continue;
|
||||
console.log(`\nbroke is running at ${url}. Press Ctrl+C to stop it.\n`);
|
||||
console.log(`\nbroke is running at ${url}. Press Ctrl+C to stop it.${process.env.BROKE_TIP ? "\nTo start it again later, open a new Terminal window and type: broke" : ""}\n`);
|
||||
openIt();
|
||||
break;
|
||||
}
|
||||
Reference in new issue
Block a user