fix(dualboot): stop dry runs before accessing target state

This commit is contained in:
2026-10-30 11:06:23 -03:00
parent 035d2355d5
commit f08540ca19
3 changed files with 35 additions and 0 deletions
+5
View File
@@ -203,6 +203,11 @@ cmd_restore() {
}
cmd_dualboot() {
if [ "$DRY_RUN" = true ]; then
info "[DRY RUN] Would select an external macOS installation and create an admin account."
info "[DRY RUN] Would update its hosts file and enrollment markers."
return 0
fi
if ! is_root; then
error_exit "Dual-boot needs sudo: sudo ./unleash dualboot"
fi