Skip to content

Commit

Permalink
fix: async user creation (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
pajgo authored Jul 21, 2022
1 parent a3f7de4 commit d9b1eba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/cmds/test_cmds/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,15 @@ exports.handler = async (argv) => {
const uid = process.getuid();

if (!(await checkUser(uid))) {
createUser('tester', uid);
await createUser('tester', uid);
}

if (argv.ruser && !(await checkUser(argv.ruser))) {
createUser(argv.ruser);
await createUser(argv.ruser);
}

if (argv.tuser && !(await checkUser(argv.tuser))) {
createUser(argv.tuser);
await createUser(argv.tuser);
}
}

Expand Down

0 comments on commit d9b1eba

Please sign in to comment.