summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-08 14:22:04 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-08 14:22:04 +0200
commit0acdc5c3505af77752e409c37630ec23b07a17c2 (patch)
treee43184b3d682cda00a24a0487d2156c5dd7b2a6e /bin/pkg
parent7fee6b9cda9ca1cb5fc32946c8377c4b1bef958b (diff)
bin/pkg: Actually check for sed
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg9
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/pkg b/bin/pkg
index 4e94e43..1182fd7 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -50,11 +50,10 @@ export PKG_ROOT
## Warn otherwise
##
-check_sed () {
- 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"
- }
+# we need sed -r (and sed -i, but not checking for that here)
+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"
}
if ([ ! -d $PDIR ]) {