]> err.no Git - util-linux/commitdiff
tests: fix -regex in run.sh
authorKarel Zak <kzak@redhat.com>
Wed, 29 Apr 2009 13:51:32 +0000 (15:51 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 29 Apr 2009 13:51:32 +0000 (15:51 +0200)
Reported-by: Scott James Remnant <scott@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/run.sh

index f4a6e7bfe9c024524c9e89b22a8bb3eda2cd7323..b99f876138c9d9e966d44ae314fbbc555c642894 100755 (executable)
 #
 
 TS_TOPDIR=$(cd $(dirname $0) && pwd)
-comps=$(find $TS_TOPDIR/ts/ -type f -perm /a+x -regex "[^\.~]*" |  sort)
+comps=$(find $TS_TOPDIR/ts/ -type f -perm /a+x -regex ".*/[^\.~]*" |  sort)
 
 if [ -n "$1" ]; then
        if [ -d "$TS_TOPDIR/ts/$1" ]; then
-               comps=$(find $TS_TOPDIR/ts/$1 -type f -perm /a+x -regex "[^\.~]*" |  sort)
+               comps=$(find $TS_TOPDIR/ts/$1 -type f -perm /a+x -regex ".*/[^\.~]*" |  sort)
        else
                echo
                echo "usage: $0 [<component>]"