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

View file

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