Revert "e2fsprogs/populate-extfs.sh: fix a problem on dash"
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Jan 2014 10:28:32 +0000 (10:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Jan 2014 10:29:36 +0000 (10:29 +0000)
This reverts commit 22f90c5aec4f0b0360d1d960226f9965d83d589b.

This causes build failures with:

| dirname: missing operand
| Try 'dirname --help' for more information.

under some circumstances.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh

index 9b55a4b..7de720b 100644 (file)
@@ -23,7 +23,7 @@ DEBUGFS="debugfs"
        find $SRCDIR | while read FILE; do
                 TGT="${FILE##*/}"
                 DIR="${FILE#$SRCDIR}"
-                DIR="$(dirname $DIR)"
+                DIR="${DIR%$TGT}"
 
                # Skip the root dir
                [ ! -z "$DIR" ] || continue