mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Merge pull request #125 from somehowchris/fix/package-version-abort-logic
fix: abort install for specific version if not confirmed
This commit is contained in:
commit
26711f3ae6
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
|
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");
|
warn!("Installation cancelled");
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue