From 55e3061bfd713c4197e568e07bc0542f30a39970 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 8 Jan 2021 14:15:37 +0100 Subject: setup-hostname: use ask for consistency --- setup-hostname.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup-hostname.in b/setup-hostname.in index 3ce7dd2..3c43dab 100644 --- a/setup-hostname.in +++ b/setup-hostname.in @@ -58,9 +58,9 @@ fi HOST="$name" while [ -z "$name" ]; do HOST=$(hostname) - echon "Enter system hostname (short form, e.g. 'foo') [$HOST]: " - default_read HOST "$HOST" - if valid_hostname "$HOST"; then + ask "Enter system hostname (short form, e.g. 'foo')" "$HOST" + if valid_hostname "$resp"; then + HOST="$resp" break fi done -- cgit v1.2.3