diff options
author | 2004-07-17 02:13:53 +0000 | |
---|---|---|
committer | 2004-07-17 02:13:53 +0000 | |
commit | dbd580f9535ab2c714989595bf63f8747d3ea0fb (patch) | |
tree | c4831d10bb1d878fe6b7f6661830a2b13c5fccdc | |
parent | Repair breakage from the hackathon's time conversion. Using the timestamp (diff) | |
download | wireguard-openbsd-dbd580f9535ab2c714989595bf63f8747d3ea0fb.tar.xz wireguard-openbsd-dbd580f9535ab2c714989595bf63f8747d3ea0fb.zip |
Don't add '/'s to timezone path when null input entered
as sub-timezone.
Pointed out by cloder@.
-rw-r--r-- | distrib/miniroot/install.sub | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 7b33f9ed44f..8cb489f76a3 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.343 2004/06/26 20:10:17 krw Exp $ +# $OpenBSD: install.sub,v 1.344 2004/07/17 02:13:53 krw Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2004 Todd Miller, Theo de Raadt, Ken Westerback @@ -1382,11 +1382,11 @@ set_timezone() { while [[ -d $_zonepath ]]; do ask "What sub-timezone of '${_zonepath#$_zoneroot}' are you in? ('?' for list)" - if [[ $resp == ? ]]; then - ls -F $_zonepath - else - _zonepath=$_zonepath/$resp - fi + case $resp in + "") ;; + ?) ls -F $_zonepath ;; + *) _zonepath=$_zonepath/$resp ;; + esac done if [[ -f $_zonepath ]]; then |