Skip to content

Commit 373dde6

Browse files
committed
👌 IMPROVE: remove pwd
1 parent 840f57a commit 373dde6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎utils/authentication.js‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ module.exports = async () => {
1515
"> If you do not know how to create one, check -> https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line\n"
1616
)
1717
);
18-
const pwd = process.cwd();
19-
console.log(pwd);
2018

2119
io.write(yellow("Token: "));
2220
const token = await io.read();
@@ -32,7 +30,7 @@ module.exports = async () => {
3230
username: "${username}",
3331
}`;
3432

35-
fs.writeFile(`${pwd}/utils/auth.js`, userToken, (err) => {});
36-
fs.writeFile(`${pwd}/utils/user.js`, userData, (err) => {});
33+
fs.writeFile(`../utils/auth.js`, userToken, (err) => {});
34+
fs.writeFile(`../utils/user.js`, userData, (err) => {});
3735
}
3836
};

0 commit comments

Comments
 (0)