Skip to content

Commit

Permalink
Merge pull request #3131 from matthewbauer/dont-source-bashrc-in-pure…
Browse files Browse the repository at this point in the history
…-mode

Don’t source bashrc in pure mode
  • Loading branch information
edolstra authored Oct 9, 2019
2 parents a7e9286 + 65f6d5d commit 6b3a6fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix-build/nix-build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ static void _main(int argc, char * * argv)
auto rcfile = (Path) tmpDir + "/rc";
writeFile(rcfile, fmt(
(keepTmp ? "" : "rm -rf '%1%'; "s) +
"[ -n \"$PS1\" ] && [ -e ~/.bashrc ] && source ~/.bashrc; "
(pure ? "" : "[ -n \"$PS1\" ] && [ -e ~/.bashrc ] && source ~/.bashrc;")
"%2%"
"dontAddDisableDepTrack=1; "
"[ -e $stdenv/setup ] && source $stdenv/setup; "
Expand Down

0 comments on commit 6b3a6fe

Please sign in to comment.