mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-05 11:40:04 +00:00
fix: abort install for specific version if not confirmed
This commit is contained in:
parent
77f51aff84
commit
42e327477b
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ async fn main() -> Result<(), anyhow::Error> {
|
|||
o=opts.version, p=package.version
|
||||
);
|
||||
|
||||
if !opts.no_confirm && !opts.dry_run && !confirm()? {
|
||||
if opts.no_confirm || opts.dry_run || !confirm()? {
|
||||
warn!("Installation cancelled");
|
||||
return Ok(());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue