diff options
author | Rashed Abdel-Tawab <rashed@linux.com> | 2017-04-04 18:03:35 -0400 |
---|---|---|
committer | Rashed Abdel-Tawab <rashed@linux.com> | 2017-07-30 12:48:18 -0400 |
commit | 1f56fc5064f2556e479fe75ff8be0e0ccfea978c (patch) | |
tree | 4383b70600c6429d0e4a91d0c16e91dce00b23b3 | |
parent | 4ef345ddea9444444b2af4202d78a8bc04f728b4 (diff) |
extract_files: Add support for paths without system/
Sometime blob directories are contained in dirs not named system
(ex. extracting blobs from another vendor dir) so check if the file
exists without system/ before appending "system/" to filenames.
Change-Id: I4ba946e178260b4f4804b1ac4422645e3085c665
-rw-r--r-- | extract_utils.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extract_utils.sh b/extract_utils.sh index 76fa63b..0e6ffc3 100644 --- a/extract_utils.sh +++ b/extract_utils.sh @@ -873,6 +873,8 @@ function extract() { TARGET="$FROM" OUTPUT_DIR="$OUTPUT_DIR/rootfs" TMP_DIR="$TMP_DIR/rootfs" + elif [ -f "$SRC/$FILE" ] && [ "$SRC" != "adb" ]; then + TARGET="$FROM" else TARGET="system/$FROM" FILE="system/$FILE" |