Skip to content

Commit

Permalink
add exit entry
Browse files Browse the repository at this point in the history
  • Loading branch information
dl2019 committed Oct 8, 2020
1 parent e87ee10 commit 7857df2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ const ready = () => {
let msgstr = '', root, paipu4 = 0, paipu3 = 0, downloaded = 0, converted = 0, userid = getUserID();
if (userid <= 0){
showcantgetIDmsg();
if (argv.auto == 'true')
app.exit(1);
return;
}
root = path(dataPath, 'majsoul', userid.toString());
Expand Down

0 comments on commit 7857df2

Please sign in to comment.