Marius van Niekerk 7 months ago
parent b9c845a63b
commit cff7f802d0
No known key found for this signature in database
GPG Key ID: DF15BF4791F2F815
  1. 4
      src/installer.rs

@ -112,9 +112,7 @@ fn confirm_can_overwrite(dst: &Path) -> Result<()> {
); );
eprint!("info: would you like to overwrite this file? [y/N]: "); eprint!("info: would you like to overwrite this file? [y/N]: ");
let mut line = String::new(); let mut line = String::new();
stdin stdin.read_line(&mut line).context("failed to read stdin")?;
.read_line(&mut line)
.context("failed to read stdin")?;
if line.starts_with('y') || line.starts_with('Y') { if line.starts_with('y') || line.starts_with('Y') {
return Ok(()); return Ok(());

Loading…
Cancel
Save