diff options
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh')
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh b/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh index 7de720b115..da3954ea7d 100644 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs-1.42.8/populate-extfs.sh | |||
@@ -23,12 +23,13 @@ DEBUGFS="debugfs" | |||
23 | find $SRCDIR | while read FILE; do | 23 | find $SRCDIR | while read FILE; do |
24 | TGT="${FILE##*/}" | 24 | TGT="${FILE##*/}" |
25 | DIR="${FILE#$SRCDIR}" | 25 | DIR="${FILE#$SRCDIR}" |
26 | DIR="${DIR%$TGT}" | ||
27 | 26 | ||
28 | # Skip the root dir | 27 | # Skip the root dir |
29 | [ ! -z "$DIR" ] || continue | 28 | [ ! -z "$DIR" ] || continue |
30 | [ ! -z "$TGT" ] || continue | 29 | [ ! -z "$TGT" ] || continue |
31 | 30 | ||
31 | DIR="$(dirname $DIR)" | ||
32 | |||
32 | if [ "$DIR" != "$CWD" ]; then | 33 | if [ "$DIR" != "$CWD" ]; then |
33 | echo "cd $DIR" | 34 | echo "cd $DIR" |
34 | CWD="$DIR" | 35 | CWD="$DIR" |