Skip to content

Commit

Permalink
suppress md5 tar errors
Browse files Browse the repository at this point in the history
  • Loading branch information
erfanoabdi committed Nov 30, 2019
1 parent 01f4bf3 commit bc32fa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extractor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ elif [[ $(7z l -ba $romzip | grep tar.md5 | gawk '{ print $NF }' | grep AP_) ]];
cscmd5=$(7z l -ba $romzip | grep tar.md5 | gawk '{ print $NF }' | grep CSC_ | sed 's|.*/||')
echo "Extracting images..."
for i in "$mainmd5" "$cscmd5"; do
if [ ! -f "$i" ]; then
continue
fi
for partition in $PARTITIONS; do
tarulist=$(tar -tf $i | grep -e ".*$partition.*\.img.*\|.*$partition.*ext4")
echo "$tarulist" | while read line; do
Expand Down

0 comments on commit bc32fa9

Please sign in to comment.