Skip to content

Commit

Permalink
🐛 Replace environment variables prefixed with $
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 10, 2020
1 parent a9198f2 commit 29a1407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const update = async (shouldCommit = false) => {

const replaceEnvironmentVariables = (str: string) => {
Object.keys(process.env).forEach((key) => {
str = str.replace(`${key}`, process.env[key] || `${key}`);
str = str.replace(`$${key}`, process.env[key] || `$${key}`);
});
return str;
};
Expand Down

0 comments on commit 29a1407

Please sign in to comment.