fix: softwareupdate under dry run (#668)

This commit is contained in:
Brent Monning
2024-01-26 22:57:10 -08:00
committed by GitHub
parent 77ff6cb714
commit 30c5b31e21

View File

@@ -41,7 +41,7 @@ pub fn run_mas(ctx: &ExecutionContext) -> Result<()> {
pub fn upgrade_macos(ctx: &ExecutionContext) -> Result<()> { pub fn upgrade_macos(ctx: &ExecutionContext) -> Result<()> {
print_separator("macOS system update"); print_separator("macOS system update");
let should_ask = !(ctx.config().yes(Step::System)) || (ctx.config().dry_run()); let should_ask = !(ctx.config().yes(Step::System) || ctx.config().dry_run());
if should_ask { if should_ask {
println!("Finding available software"); println!("Finding available software");
if system_update_available()? { if system_update_available()? {