mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
print-dev-env: stop inadvertently adding . to PATH
This commit is contained in:
parent
208c855124
commit
526bdbda3c
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ struct Common : InstallableCommand, MixProfile
|
|||
buildEnvironment.toBash(out, ignoreVars);
|
||||
|
||||
for (auto & var : savedVars)
|
||||
out << fmt("%s=\"$%s:$nix_saved_%s\"\n", var, var, var);
|
||||
out << fmt("%s=\"$%s${nix_saved_%s:+:$nix_saved_%s}\"\n", var, var, var, var);
|
||||
|
||||
out << "export NIX_BUILD_TOP=\"$(mktemp -d -t nix-shell.XXXXXX)\"\n";
|
||||
for (auto & i : {"TMP", "TMPDIR", "TEMP", "TEMPDIR"})
|
||||
|
|
Loading…
Reference in a new issue