From 3a0c5a01338ecbdaca2ca8ca7db7974cd7f60436 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 27 May 2008 20:20:22 +0200 Subject: fix typo in check_sed(), pkg_changsrc() does not need sed -r --- bin/pkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/pkg') diff --git a/bin/pkg b/bin/pkg index f60b85e..45f690c 100755 --- a/bin/pkg +++ b/bin/pkg @@ -28,7 +28,7 @@ die () { } check_sed () { - QUUX=$(echo foox | sed -r 's/^fo{2}(.)$/quu\1/' 2 > /dev/stdout) + QUUX=$(echo foox | sed -r 's/^fo{2}(.)$/quu\1/' 2> /dev/null) if ([ "$QUUX" != 'quux' ]) { warn "sed is not working properly. This may produce unexpected behaviour.\n" } @@ -132,7 +132,7 @@ pkg_changesrc () { cd $PDIR for i in *(/); { if ([ -f $i/.hg/hgrc ]) { - sed -ri "s!(default = )[^:]*://.*\$!\1$1/$i!" $i/.hg/hgrc + sed -i "s!default = [^:]*://.*\$!default = $1/$i!" $i/.hg/hgrc } } } -- cgit v1.2.3