diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-07-03 11:54:30 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-07-03 11:54:30 +0200 |
commit | 0a5a867758285ee07334a44ede336ae75fd51c50 (patch) | |
tree | 7b3cfe5a2ffc52ebe9a27c6a038aadc9774d3e58 | |
parent | fcca702a96a8ca0e73f6d035052c30121776aeba (diff) |
nix-shell: Respect --dry-run
Fixes #824.
-rwxr-xr-x | src/nix-build/nix-build.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |