From 07e4694b46c305378752b5075c94d5960390aa40 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Tue, 17 Jan 2023 05:46:13 +0400 Subject: [PATCH] Fix up the init command for linux users. --- commands/init.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/init.js b/commands/init.js index 24d7b9e..987ae4a 100755 --- a/commands/init.js +++ b/commands/init.js @@ -65,8 +65,10 @@ export const main = async (opts) => { if(process.platform === "win32") { exec(`start ${url}`); - } else { + } else if(process.platform === "darwin") { exec(`open ${url}`); + } else { + warn(`\nOn linux you just open the link yourself:\n${url}\n`); } question("Register your admin user and hit ENTER.");