Skip to content

Commit

Permalink
fixing syntax issue in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
machellerogden committed Feb 10, 2017
1 parent d3022b1 commit 7f1f45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ source $HOME/.bitcar/completions.sh
fs.copy(path.normalize(process.env.HOME + '/.bash_profile'), path.normalize(process.env.HOME + '/.bash_profile.bkup'));
const bashProfile = fs.read(path.normalize(process.env.HOME + '/.bash_profile'));
let cleanedProfile = bashProfile.replace(/\n# begin bitcar[\s\S]+# end bitcar\n/gm, '');
cleanedProfile = cleanedProfile + os.EOL + profileContent);
cleanedProfile = cleanedProfile + os.EOL + profileContent;
fs.write(path.normalize(process.env.HOME + '/.bash_profile'), cleanedProfile);

fs.commit(function (err) {
Expand Down

0 comments on commit 7f1f45f

Please sign in to comment.