From 0a5a867758285ee07334a44ede336ae75fd51c50 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 3 Jul 2017 11:54:30 +0200 Subject: [PATCH] nix-shell: Respect --dry-run Fixes #824. --- src/nix-build/nix-build.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index 42d68fdfd..dc80dd6a5 100755 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -390,6 +390,8 @@ int main(int argc, char ** argv) maybePrintExecError(e); } + if (dryRun) return; + // Set the environment. auto env = getEnv();