summaryrefslogtreecommitdiff
path: root/usr.sbin/sysmerge
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2009-12-18 15:33:03 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2009-12-18 15:33:03 +0000
commit72acd1253a98e26198842a0b9f56858d381ad542 (patch)
treef6f0989ce9aa9be6686898506af9408c89165cdb /usr.sbin/sysmerge
parent471e13e80ae4ab437282d5066c3b57334a95ca1c (diff)
xargs takes the whole list as argument, so no need to append.
ok sthen@
Diffstat (limited to 'usr.sbin/sysmerge')
-rw-r--r--usr.sbin/sysmerge/sysmerge.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/sysmerge/sysmerge.sh b/usr.sbin/sysmerge/sysmerge.sh
index ca8eeb26f63..a4c0f7e18a2 100644
--- a/usr.sbin/sysmerge/sysmerge.sh
+++ b/usr.sbin/sysmerge/sysmerge.sh
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: sysmerge.sh,v 1.54 2009/12/18 13:51:03 ajacoutot Exp $
+# $OpenBSD: sysmerge.sh,v 1.55 2009/12/18 15:33:02 ajacoutot Exp $
#
# Copyright (c) 1998-2003 Douglas Barton <DougB@FreeBSD.org>
# Copyright (c) 2008, 2009 Antoine Jacoutot <ajacoutot@openbsd.org>
@@ -132,7 +132,7 @@ do_populate() {
SRCSUM=srcsum
cd ${SRCDIR}/etc
make DESTDIR=${TEMPROOT} distribution-etc-root-var > /dev/null 2>&1
- (cd ${TEMPROOT} && find . -type f | xargs cksum >> ${WRKDIR}/${SRCSUM})
+ (cd ${TEMPROOT} && find . -type f | xargs cksum > ${WRKDIR}/${SRCSUM})
fi
if [ "${TGZ}" -o "${XTGZ}" ]; then
@@ -142,12 +142,12 @@ do_populate() {
if [ "${TGZ}" ]; then
ETCSUM=etcsum
_E=$(cd `dirname ${TGZ}` && pwd)/`basename ${TGZ}`
- (cd ${TEMPROOT} && tar -tzf ${_E} | xargs cksum >> ${WRKDIR}/${ETCSUM})
+ (cd ${TEMPROOT} && tar -tzf ${_E} | xargs cksum > ${WRKDIR}/${ETCSUM})
fi
if [ "${XTGZ}" ]; then
XETCSUM=xetcsum
_X=$(cd `dirname ${XTGZ}` && pwd)/`basename ${XTGZ}`
- (cd ${TEMPROOT} && tar -tzf ${_X} | xargs cksum >> ${WRKDIR}/${XETCSUM})
+ (cd ${TEMPROOT} && tar -tzf ${_X} | xargs cksum > ${WRKDIR}/${XETCSUM})
fi
fi