ask_yn() returns 0/1 on yes/no, so use the shorter '|| skip' found in
install.sub; no functional change.
OK solene
-# $OpenBSD: install.md,v 1.60 2023/04/26 22:45:32 kn Exp $
+# $OpenBSD: install.md,v 1.61 2023/05/26 11:41:50 kn Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
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..."
-# $OpenBSD: install.md,v 1.77 2023/03/27 19:43:36 kn Exp $
+# $OpenBSD: install.md,v 1.78 2023/05/26 11:41:50 kn Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
$(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