From aa494bedbd76d918a66cbd5bd51e5c6878df4097 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Tue, 17 Jan 2023 05:24:42 +0400 Subject: [PATCH] init needs to adapt to linux users having various open commands --- 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.");