summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-06-25 16:35:27 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-06-25 16:35:27 +0000
commitbd7cb02b2310f6217897d706ce85f2aec664aa2d (patch)
tree5a73d6c7b3d1b4802c317dd39a2460ea4ff8e2ee /distrib/miniroot/install.sub
parent686f27dfcc25d7c13f708f4543d373222909b50e (diff)
use POSIX sh builtin arithmetic, not expr
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r--distrib/miniroot/install.sub6
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 353faa48cc2..61196d32da9 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sub,v 1.77 1998/06/05 01:24:15 deraadt Exp $
+# $OpenBSD: install.sub,v 1.78 1998/06/25 16:35:26 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
@@ -69,7 +69,7 @@
# OpenBSD installation/upgrade script - common subroutines.
ROOTDISK="" # filled in below
-VERSION=
+VERSION=23
VERSION_MAJOR=$(( $VERSION / 10 ))
VERSION_MINOR=$(( $VERSION % 10 ))
export VERSION VERSION_MAJOR VERSION_MINOR
@@ -1581,7 +1581,7 @@ while [ "X${resp}" = X"" ]; do
getresp ""
case "$resp" in
[1-9]*)
- _nskip=`expr $resp - 1`
+ _nskip=$(( $resp - 1 ))
;;
*)