Skip to content

Commit

Permalink
re fix setEnvFile.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
error7404 committed Aug 14, 2024
1 parent 1131446 commit 043221b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/setEnvFile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ fs.readFile(path.join(__dirname, '..', '.env'), 'utf8', (err, existingData) => {
})
.join(os.EOL);

data += os.EOL + existingData;
if (existingEnvData) {
data += os.EOL + existingEnvData;
}

fs.writeFile(path.join(__dirname, '..', '.env'), data, 'utf8', err => {
if (err) {
Expand Down

0 comments on commit 043221b

Please sign in to comment.