summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-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
}
}
}