nix-shell: Don't leave a temporary directory in /tmp behind
This commit is contained in:
parent
a7e70518b8
commit
73f74ebba0
1 changed files with 1 additions and 0 deletions
|
@ -206,6 +206,7 @@ foreach my $expr (@exprs) {
|
|||
my $rcfile = "$tmpDir/rc";
|
||||
writeFile(
|
||||
$rcfile,
|
||||
"rm -rf '$tmpDir'; " .
|
||||
'unset BASH_ENV; ' .
|
||||
'[ -n "$PS1" ] && [ -e ~/.bashrc ] && source ~/.bashrc; ' .
|
||||
($pure ? '' : 'p=$PATH; ' ) .
|
||||
|
|
Loading…
Reference in a new issue