fix(dualboot): stop dry runs before accessing target state
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user