From f10c533a6135fc18c2e8b4f1b83881b15b595bbf Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Mon, 30 May 2016 15:27:56 +0300 Subject: [PATCH] Move exit --- bin/now-alias | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/now-alias b/bin/now-alias index ce1ac30..32437ce 100755 --- a/bin/now-alias +++ b/bin/now-alias @@ -84,6 +84,7 @@ if (argv.help || !subcommand) { .then(async (token) => { try { await run(token); + exit(0); } catch (err) { if (err.userError) { error(err.message); @@ -160,8 +161,6 @@ async function run (token) { exit(1); } } - - exit(0); } async function sort (aliases) {