Skip to content

Commit

Permalink
Fix run command
Browse files Browse the repository at this point in the history
  • Loading branch information
zueve authored Feb 1, 2021
1 parent 60c02eb commit 7c4188b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotenv/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def run(ctx, replace, commandline):
dotenv_as_dict = {
to_env(k): to_env(v)
for (k, v) in dotenv_values(file).items()
if v is not None and replace or to_env(k) not in os.environ
if v is not None and (replace or to_env(k) not in os.environ)
}

if not commandline:
Expand Down

0 comments on commit 7c4188b

Please sign in to comment.