Skip to content

Commit

Permalink
Fix clasp login (google#165)
Browse files Browse the repository at this point in the history
Now it checks for local rc file before logging in.

Signed-off-by: campionfellin <[email protected]>
  • Loading branch information
campionfellin authored and grant committed May 15, 2018
1 parent 0080f67 commit 4594a5c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
});

Expand Down

0 comments on commit 4594a5c

Please sign in to comment.