summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-05-27 20:20:22 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-05-27 20:20:22 +0200
commit3a0c5a01338ecbdaca2ca8ca7db7974cd7f60436 (patch)
tree14920e22a6921c3f31d0c1f9963cbd01db114cc1
parentf9dc75acff077a38726648fd28b8d3f0a000af18 (diff)
fix typo in check_sed(), pkg_changsrc() does not need sed -r
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
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
}
}
}