ask_yn() returns 0/1 for no/yes, so almost all users in install.sub use the same 'ask_yn && do-it', 'ask_yn || skip' idioms.
Adjust two MD calls accordingly. OK? Index: amd64/common/install.md =================================================================== RCS file: /cvs/src/distrib/amd64/common/install.md,v retrieving revision 1.60 diff -u -p -r1.60 install.md --- amd64/common/install.md 26 Apr 2023 22:45:32 -0000 1.60 +++ amd64/common/install.md 22 May 2023 21:25:52 -0000 @@ -77,8 +77,7 @@ md_prep_fdisk() { return ;; [gG]*) if [[ $MDEFI != y ]]; then - ask_yn "An EFI/GPT disk may not boot. Proceed?" - [[ $resp == n ]] && continue + ask_yn "An EFI/GPT disk may not boot. Proceed?" || continue fi echo -n "Setting OpenBSD GPT partition to whole $_disk..." Index: macppc/ramdisk/install.md =================================================================== RCS file: /cvs/src/distrib/macppc/ramdisk/install.md,v retrieving revision 1.77 diff -u -p -r1.77 install.md --- macppc/ramdisk/install.md 27 Mar 2023 19:43:36 -0000 1.77 +++ macppc/ramdisk/install.md 10 May 2023 20:02:15 -0000 @@ -54,8 +54,7 @@ WARNING: Putting an MBR partition table $(pdisk -l $_disk) __EOT - ask_yn "Are you *sure* you want an MBR partition table on $_disk?" - [[ $resp == n ]] && return 1 + ask_yn "Are you *sure* you want an MBR partition table on $_disk?" || return 1 fi while :; do