summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2015-09-09 08:10:34 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2015-09-09 08:10:34 +0000
commit988c2799f7461bf81bd49a9805b843a78039ecdd (patch)
treead249498d62d0d605bbb1eef4ed09682414fa1ff /usr.sbin
parentede5c9ffff52f32d594fa264cd79f859afe473d6 (diff)
Remove unused code.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sysmerge/sysmerge.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.sbin/sysmerge/sysmerge.sh b/usr.sbin/sysmerge/sysmerge.sh
index 149e0b0644f..91e44a3088e 100644
--- a/usr.sbin/sysmerge/sysmerge.sh
+++ b/usr.sbin/sysmerge/sysmerge.sh
@@ -1,6 +1,6 @@
#!/bin/ksh -
#
-# $OpenBSD: sysmerge.sh,v 1.205 2015/09/09 08:04:22 ajacoutot Exp $
+# $OpenBSD: sysmerge.sh,v 1.206 2015/09/09 08:10:33 ajacoutot Exp $
#
# Copyright (c) 2008-2014 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 1998-2003 Douglas Barton <DougB@FreeBSD.org>
@@ -430,7 +430,7 @@ sm_merge_loop() {
}
sm_diff_loop() {
- local i _handle _nonexistent _autoinst
+ local i _handle _nonexistent
${BATCHMODE} && _handle=todo || _handle=v
@@ -449,8 +449,7 @@ sm_diff_loop() {
if [[ -z $(diff -q -I'[$]OpenBSD:.*$' ${TARGET} ${COMPFILE}) ]] || \
${FORCE_UPG} || ${IS_BIN}; then
echo -n "===> Updating ${TARGET}"
- sm_install && \
- _autoinst="${_autoinst}${TARGET}\n" || \
+ sm_install || \
(echo && sm_warn "problem updating ${TARGET}")
return
fi
@@ -471,14 +470,12 @@ sm_diff_loop() {
${BATCHMODE} || echo "\n===> Missing ${TARGET}\n"
elif ${IS_LINK}; then
echo "===> Linking ${TARGET}"
- sm_install && \
- _autoinst="${_autoinst}${TARGET}\n" || \
+ sm_install || \
sm_warn "problem creating ${TARGET} link"
return
else
echo -n "===> Installing ${TARGET}"
- sm_install && \
- _autoinst="${_autoinst}${TARGET}\n" || \
+ sm_install || \
(echo && sm_warn "problem installing ${TARGET}")
return
fi