From 0acdc5c3505af77752e409c37630ec23b07a17c2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 8 Jun 2008 14:22:04 +0200 Subject: bin/pkg: Actually check for sed --- bin/pkg | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bin/pkg') 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 ]) { -- cgit v1.2.3