nix-shell: use clean rm, not any aliases/functions
This commit is contained in:
parent
c9a4ddb9c0
commit
040cb7304a
|
@ -483,7 +483,7 @@ static void main_nix_build(int argc, char * * argv)
|
||||||
lose the current $PATH directories. */
|
lose the current $PATH directories. */
|
||||||
auto rcfile = (Path) tmpDir + "/rc";
|
auto rcfile = (Path) tmpDir + "/rc";
|
||||||
std::string rc = fmt(
|
std::string rc = fmt(
|
||||||
R"(_nix_shell_clean_tmpdir() { rm -rf %1%; }; )"s +
|
R"(_nix_shell_clean_tmpdir() { command rm -rf %1%; }; )"s +
|
||||||
(keepTmp ?
|
(keepTmp ?
|
||||||
"trap _nix_shell_clean_tmpdir EXIT; "
|
"trap _nix_shell_clean_tmpdir EXIT; "
|
||||||
"exitHooks+=(_nix_shell_clean_tmpdir); "
|
"exitHooks+=(_nix_shell_clean_tmpdir); "
|
||||||
|
|
Loading…
Reference in a new issue