summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-04-02 05:51:17 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-04-02 05:51:17 +0000
commit15ea91a5d3f0a5882a65f97568725545c58989cb (patch)
tree4f7833443860815f2db0b77f72b9bcec6203949a /distrib
parent48c92a60511e2b6b4ae5e970e2201c038825267f (diff)
Change a = to -eq in test statement. Otherwise we get an error if someone just hits return at the Server IP prompt during an ftp install
Diffstat (limited to 'distrib')
-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 e8c0e134f74..2f4bb9fc045 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sub,v 1.117 1999/04/01 21:25:48 deraadt Exp $
+# $OpenBSD: install.sub,v 1.118 1999/04/02 05:51:16 millert Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997,1998 Todd Miller, Theo de Raadt
@@ -864,7 +864,7 @@ while [ "X${resp}" = X"" ]; do
if [ "X$resp" = "X?" -a -f /tmp/ftplist ]; then
cat /tmp/ftplist | grep "^${_url_type}:" | cat -n | less -XE
resp=""
- elif [ "X${resp}" != X"" -a `isnumeric $resp` = 1 -a $resp -ge 1 \
+ elif [ "X${resp}" != X"" -a `isnumeric $resp` -eq 1 -a $resp -ge 1 \
-a -f /tmp/ftplist ]; then
maxlines=`grep "^${_url_type}:" /tmp/ftplist | cat -n |
sed -n -e '$p' | cutword 1`