Skip to content

Commit

Permalink
Add 0 to list of values that can turn off daemon.
Browse files Browse the repository at this point in the history
Signed-off-by: Gene Johnston <[email protected]>
  • Loading branch information
gejohnston committed Nov 8, 2021
1 parent e92398d commit 3e288b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zowex/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ fn user_wants_daemon() -> bool {
Err(_e) => env_var_val = "NoDaemon".to_string(),
}

if env_var_val.to_lowercase() == "false" || env_var_val.to_lowercase() == "no" {
if env_var_val.to_lowercase() == "false" || env_var_val.to_lowercase() == "no" ||
env_var_val == "0"
{
return false
}
return true;
Expand Down

0 comments on commit 3e288b0

Please sign in to comment.