]> code.ossystems Code Review - openembedded-core.git/commitdiff
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:32 +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.

meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh

index 9b55a4b912013551cd5412d6a3ef60ae1fba8856..7de720b115a8c1f75b714586a5056f576a5917f9 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