File tree 1 file changed +0
-4
lines changed
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -216,15 +216,11 @@ extract_partition() {
216
216
target_dir=$2
217
217
if [[ -f ${part_img} ]]; then
218
218
if [[ $( $tools_dir /gettype -i ${part_img} ) == " ext" ]]; then
219
- pack_type=" EXT"
220
219
blue " [ext] 正在分解${part_name} " " [ext] Extracing ${part_name} "
221
220
sudo python3 bin/imgextractor/imgextractor.py ${part_img} ${target_dir} > /dev/null 2>&1 || { error " 分解 ${part_name} 失败" " Extracting ${part_name} failed." ; exit 1; }
222
221
green " [ext]分解[${part_name} ] 完成" " [ext] ${part_name} extracted."
223
222
rm -rf ${part_img}
224
223
elif [[ $( $tools_dir /gettype -i ${part_img} ) == " erofs" ]]; then
225
- if [[ $repackext4 != true ]]; then
226
- pack_type=" EROFS"
227
- fi
228
224
blue " [erofs] 正在分解${part_name} " " [erofs] Extracing ${part_name} "
229
225
extract.erofs -x -i ${part_img} -o $target_dir > /dev/null 2>&1 || { error " 分解 ${part_name} 失败" " Extracting ${part_name} failed." ; exit 1; }
230
226
green " [erofs] 分解[${part_name} ] 完成" " [erofs] ${part_name} extracted."
You can’t perform that action at this time.
0 commit comments