Skip to content

Commit 5b95929

Browse files
committed
Fix: Wrong pack_type
1 parent 80f637c commit 5b95929

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

functions.sh

-4
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,11 @@ extract_partition() {
216216
target_dir=$2
217217
if [[ -f ${part_img} ]];then
218218
if [[ $($tools_dir/gettype -i ${part_img} ) == "ext" ]];then
219-
pack_type="EXT"
220219
blue "[ext] 正在分解${part_name}" "[ext] Extracing ${part_name} "
221220
sudo python3 bin/imgextractor/imgextractor.py ${part_img} ${target_dir} >/dev/null 2>&1 || { error "分解 ${part_name} 失败" "Extracting ${part_name} failed."; exit 1; }
222221
green "[ext]分解[${part_name}] 完成" "[ext] ${part_name} extracted."
223222
rm -rf ${part_img}
224223
elif [[ $($tools_dir/gettype -i ${part_img}) == "erofs" ]]; then
225-
if [[ $repackext4 != true ]];then
226-
pack_type="EROFS"
227-
fi
228224
blue "[erofs] 正在分解${part_name} " "[erofs] Extracing ${part_name} "
229225
extract.erofs -x -i ${part_img} -o $target_dir > /dev/null 2>&1 || { error "分解 ${part_name} 失败" "Extracting ${part_name} failed." ; exit 1; }
230226
green "[erofs] 分解[${part_name}] 完成" "[erofs] ${part_name} extracted."

0 commit comments

Comments
 (0)