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
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
1 changed files with 2 additions and 0 deletions

View File

@ -390,6 +390,8 @@ int main(int argc, char ** argv)
maybePrintExecError(e);
}
if (dryRun) return;
// Set the environment.
auto env = getEnv();