summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2011-02-25 12:55:46 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2011-02-25 12:55:46 +0000
commit086134a997bd2f8c6c0546da989cd2dd93fe8e64 (patch)
tree8468594e92435d61c5b9bc9767ec2eb65a7b6994 /distrib/miniroot/install.sub
parentc27da220195bc8f6cd63b71e83901fc161ac9907 (diff)
Silence a bit of error output when no ftplist can be downloaded.
Silence is golden. Problem seen and fix tested by guenther@. ok guenther@ halex@
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 17365c43e9f..3498e8cd4a3 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.634 2011/01/31 16:48:18 halex Exp $
+# $OpenBSD: install.sub,v 1.635 2011/02/25 12:55:45 krw Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -1334,7 +1334,7 @@ install_url() {
# name. This means the last install from a mirror will not keep
# the specific directory info. But an install from a local
# server *will* remember the specific directory info.
- set -- $(sed "/^$_server_ip/x;\$!d;x" $SERVERLIST)
+ set -- $(sed "/^$_server_ip/x;\$!d;x" $SERVERLIST 2>&-)
resp=${1#*/}
# If there is no directory specified, don't use the server name!
[[ $resp == "$1" ]] && resp=