summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-04-23 16:50:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-04-23 16:50:34 +0000
commit9e512efdd59190bf682ca13f9c9347e2d16d36e2 (patch)
treed172a0d44f413c9de672e1ab63d5b6aa0af5a656 /usr.sbin
parentbcf70345ce79834f0157030e2e1310fad8477c90 (diff)
usage is only used once; ok millert
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sysmerge/sysmerge.sh12
1 files changed, 3 insertions, 9 deletions
diff --git a/usr.sbin/sysmerge/sysmerge.sh b/usr.sbin/sysmerge/sysmerge.sh
index a9688273d0a..254f9c71d8b 100644
--- a/usr.sbin/sysmerge/sysmerge.sh
+++ b/usr.sbin/sysmerge/sysmerge.sh
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: sysmerge.sh,v 1.2 2008/04/23 16:39:40 millert Exp $
+# $OpenBSD: sysmerge.sh,v 1.3 2008/04/23 16:50:33 deraadt Exp $
#
# This script is based on the FreeBSD mergemaster script which is
# Copyright (c) 1998-2003 Douglas Barton <DougB@FreeBSD.org>
@@ -27,13 +27,7 @@ umask 0022
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
PAGER="${PAGER:=/usr/bin/more}"
-SWIDTH=`stty size | awk '{w=$2}END{if(w==0){w=80}print w}'`
-
-
-usage() {
- echo "usage: ${0##*/} [-a] [-s src | etcXX.tgz]" >&2
-}
-
+SWIDTH=`stty size | awk '{w=$2} END {if (w==0) {w=80} print w}'`
yesno() {
echo -n "${*}? (y|[n]) "
@@ -405,7 +399,7 @@ do_post() {
ARGS=`getopt as: $*`
if [ $? -ne 0 ]; then
- usage
+ echo "usage: ${0##*/} [-a] [-s src | etcXX.tgz]" >&2
exit 1
fi
set -- ${ARGS}