diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-05-27 20:20:22 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-05-27 20:20:22 +0200 |
commit | 3a0c5a01338ecbdaca2ca8ca7db7974cd7f60436 (patch) | |
tree | 14920e22a6921c3f31d0c1f9963cbd01db114cc1 | |
parent | f9dc75acff077a38726648fd28b8d3f0a000af18 (diff) |
fix typo in check_sed(), pkg_changsrc() does not need sed -r
-rwxr-xr-x | bin/pkg | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } } } |