fix: abort install for specific version if not confirmed

This commit is contained in:
Christof Weickhardt 2022-04-30 09:18:46 +00:00
parent 77f51aff84
commit 42e327477b

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