aboutsummaryrefslogtreecommitdiff
path: root/src/nix-build/nix-build.cc
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2022-01-23 04:58:00 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2022-01-23 04:58:00 +0100
commit040cb7304af3fd25dd33a8d8961ca91ec81a11d5 (patch)
tree5ed8ba7cd368ff4caa3e15ee41c71775717f28a4 /src/nix-build/nix-build.cc
parentc9a4ddb9c0a7d15c29d904a017d4d5d58492fdfd (diff)
nix-shell: use clean rm, not any aliases/functions
Diffstat (limited to 'src/nix-build/nix-build.cc')
-rwxr-xr-xsrc/nix-build/nix-build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index 471a03ac7..5cdf5c717 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -483,7 +483,7 @@ static void main_nix_build(int argc, char * * argv)
lose the current $PATH directories. */
auto rcfile = (Path) tmpDir + "/rc";
std::string rc = fmt(
- R"(_nix_shell_clean_tmpdir() { rm -rf %1%; }; )"s +
+ R"(_nix_shell_clean_tmpdir() { command rm -rf %1%; }; )"s +
(keepTmp ?
"trap _nix_shell_clean_tmpdir EXIT; "
"exitHooks+=(_nix_shell_clean_tmpdir); "