diff options
-rw-r--r-- | setup-hostname.in | 6 |
1 files 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 |