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:
Ryan 2022-05-01 11:44:01 +12:00 committed by GitHub
commit 26711f3ae6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(());
}