Skip to content

Commit

Permalink
fix: Fix issue with telemetry prompt on windows
Browse files Browse the repository at this point in the history
Because of Windows' line-endings, the check being used for the prompt
returned true when it should have returned false.

Resolves #317
  • Loading branch information
obycode committed Apr 21, 2022
1 parent c1cab93 commit 0af8fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ pub fn main() {
println!("{}", yellow!("Enable [Y/n]?"));
let mut buffer = String::new();
std::io::stdin().read_line(&mut buffer).unwrap();
buffer != "n\n"
!buffer.starts_with("n")
}
} else {
false
Expand Down

0 comments on commit 0af8fe9

Please sign in to comment.