Skip to content

Commit

Permalink
fix: Include terminating newline in written file
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Sep 21, 2023
1 parent 04ebe66 commit 1fae616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ try {
mkdirSync(dirname(location), {recursive: true});
}

writeFileSync(location, key, {mode: 0o600});
writeFileSync(location, `${key}\n`, {mode: 0o600});
info(`Wrote ${location}`);
saveState('path', location);
} catch (e) {
Expand Down

0 comments on commit 1fae616

Please sign in to comment.