nix-shell: Respect --dry-run

Fixes #824.
This commit is contained in:
Eelco Dolstra
2017-07-03 11:54:30 +02:00
parent fcca702a96
commit 0a5a867758
+2
View File
@@ -390,6 +390,8 @@ int main(int argc, char ** argv)
maybePrintExecError(e);
}
if (dryRun) return;
// Set the environment.
auto env = getEnv();