From 275612dd9b96b7b9f0c60c3a96d0e2f83dc1ea12 Mon Sep 17 00:00:00 2001 From: kn Date: Mon, 17 Apr 2023 13:59:16 +0000 Subject: [PATCH] Indent interface and disk listings '?' output to list available answers could better distuingish from questions and other lines, like sets selection does with four leading spaces. OK deraadt --- distrib/miniroot/install.sub | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index af1457a9d9f..1291015445f 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.1241 2023/04/07 13:48:42 kn Exp $ +# $OpenBSD: install.sub,v 1.1242 2023/04/17 13:59:16 kn Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer @@ -281,7 +281,7 @@ diskinfo() { _s=$(disklabel -dpg $_d 2>/dev/null | sed -n '/.*# total bytes: \(.*\)/{s//(\1)/p;}') rm -f /dev/{r,}$_d? - echo "$_d: $_i $_n $_s" + echo " $_d: $_i $_n $_s" done } @@ -1354,7 +1354,7 @@ configure_ifs() { if [[ $resp == '?' ]]; then for _if in "${_ifs[@]}"; do _lladdr=$(if_name_to_lladdr $_if) - [[ -n $_lladdr ]] && echo " $_if: lladdr $_lladdr" + [[ -n $_lladdr ]] && echo " $_if: lladdr $_lladdr" done fi -- 2.20.1