summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2014-09-08 11:27:50 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2014-09-08 11:27:50 +0000
commit5c0fe9aaa0bd34548652e77ce55f97c1a6d54171 (patch)
tree41b590f2f1dcd10944ece9ab6c60ea863280513c /usr.sbin
parentbe3d094da06db497a6e78866e45b5071eaed0bd2 (diff)
strip excess verbiage from sed expressions
ok and prodding ajacoutot@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sysmerge/sysmerge.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/sysmerge/sysmerge.sh b/usr.sbin/sysmerge/sysmerge.sh
index df66ecfcea2..76dd2cc675c 100644
--- a/usr.sbin/sysmerge/sysmerge.sh
+++ b/usr.sbin/sysmerge/sysmerge.sh
@@ -1,6 +1,6 @@
#!/bin/ksh -
#
-# $OpenBSD: sysmerge.sh,v 1.183 2014/09/07 11:41:49 ajacoutot Exp $
+# $OpenBSD: sysmerge.sh,v 1.184 2014/09/08 11:27:49 halex Exp $
#
# Copyright (c) 2008-2014 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 1998-2003 Douglas Barton <DougB@FreeBSD.org>
@@ -189,7 +189,7 @@ sm_init() {
! ${DIFFMODE}; then
# redirect stderr; file may not exist
_matchsum=$(sha256 -c /usr/share/sysmerge/${_i} 2>/dev/null | \
- sed -n '/OK$/s/^(SHA256) \(.*\): OK$/\1/p')
+ sed -n 's/^(SHA256) \(.*\): OK$/\1/p')
# delete file in temproot if it has not changed since
# last release and is present in current installation
for _j in ${_matchsum}; do
@@ -566,7 +566,7 @@ sm_check_an_eg() {
cp /usr/share/sysmerge/examplessum ${_WRKDIR}/examplessum
_egmods=$(cd / && \
sha256 -c /usr/share/sysmerge/examplessum 2>/dev/null | \
- sed -n '/FAILED$/s/^(SHA256) \(.*\): FAILED$/\1/p')
+ sed -n 's/^(SHA256) \(.*\): FAILED$/\1/p')
fi
for _i in ${_egmods}; do
_i=${_i##*/}