diff --git a/index.ts b/index.ts index 7d9a8bb8..70bdc30c 100755 --- a/index.ts +++ b/index.ts @@ -206,8 +206,12 @@ commander DOTFILE.RC.read().then((rc: ClaspSettings) => { console.warn(ERROR.LOGGED_IN); }).catch(async (err: string) => { - await checkIfOnline(); - authorize(options.localhost, options.ownkey); + DOTFILE.RC_LOCAL.read().then((rc: ClaspSettings) => { + console.warn(ERROR.LOGGED_IN); + }).catch(async (err: string) => { + await checkIfOnline(); + authorize(options.localhost, options.ownkey); + }); }); });