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";
|
my $rcfile = "$tmpDir/rc";
|
||||||
writeFile(
|
writeFile(
|
||||||
$rcfile,
|
$rcfile,
|
||||||
|
"rm -rf '$tmpDir'; " .
|
||||||
'unset BASH_ENV; ' .
|
'unset BASH_ENV; ' .
|
||||||
'[ -n "$PS1" ] && [ -e ~/.bashrc ] && source ~/.bashrc; ' .
|
'[ -n "$PS1" ] && [ -e ~/.bashrc ] && source ~/.bashrc; ' .
|
||||||
($pure ? '' : 'p=$PATH; ' ) .
|
($pure ? '' : 'p=$PATH; ' ) .
|
||||||
|
|
Loading…
Reference in a new issue