diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2014-09-07 09:21:43 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2014-09-07 09:21:43 +0000 |
commit | 8371becf97dcf6c4df5083dd9382587366474b78 (patch) | |
tree | 0a7c8e21b7b4969d79325382cf4706c7f64ff0ed /usr.sbin | |
parent | d6403e27c59fcca5e78ef94bca5c8b723b95a112 (diff) |
Drop 2 uneeded xargs(1).
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sysmerge/sysmerge.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/sysmerge/sysmerge.sh b/usr.sbin/sysmerge/sysmerge.sh index 426c8ae3f40..a16fb6567ab 100644 --- a/usr.sbin/sysmerge/sysmerge.sh +++ b/usr.sbin/sysmerge/sysmerge.sh @@ -1,6 +1,6 @@ #!/bin/ksh - # -# $OpenBSD: sysmerge.sh,v 1.180 2014/09/07 08:39:04 ajacoutot Exp $ +# $OpenBSD: sysmerge.sh,v 1.181 2014/09/07 09:21:42 ajacoutot Exp $ # # Copyright (c) 2008-2014 Antoine Jacoutot <ajacoutot@openbsd.org> # Copyright (c) 1998-2003 Douglas Barton <DougB@FreeBSD.org> @@ -594,11 +594,11 @@ sm_post() { mtree -qdef /etc/mtree/BSD.x11.dist -p / -U >/dev/null if [[ -e ${_WRKDIR}/sysmerge.log ]]; then - find . -type f -empty | xargs -r rm - find . -type d | sort -r | xargs -r rmdir 2>/dev/null rm ${_WRKDIR}/*sum sed '/^$/d' ${_WRKDIR}/sysmerge.log >${_WRKDIR}/sysmerge.log.bak mv ${_WRKDIR}/sysmerge.log.bak ${_WRKDIR}/sysmerge.log + cd ${_WRKDIR} && \ + find . -type d -depth -empty -exec rmdir -p '{}' + 2>/dev/null echo "===> Log available at ${_WRKDIR}/sysmerge.log" else rm -rf ${_WRKDIR} |