Skip to content

Commit 35fb8ea

Browse files
author
oneui
committed
fix
1 parent 71008d9 commit 35fb8ea

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- main
66
workflow_dispatch:
77
env:
8-
VERSION: '12.9.0'
8+
VERSION: '12.9.1'
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest

resources/languages/start_cn.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ for script in "$(dirname "$0")/resources/module_codes/cn"/*.sh \
66
source "$script"
77
done
88
source "$(dirname "$0")/resources/my_tools/nice_rom/NiceRom.sh"
9-
super_sub-partitions_list="my_.*\.img|\
9+
super_sub_partitions_list="my_.*\.img|\
1010
mi_ext\.img|\
1111
odm\.img|odm_dlkm\.img|\
1212
product\.img|\

resources/languages/start_en.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ for script in "$(dirname "$0")/resources/module_codes/en"/*.sh \
66
source "$script"
77
done
88
source "$(dirname "$0")/resources/my_tools/nice_rom/NiceRom_en.sh"
9-
super_sub-partitions_list="my_.*\.img|\
9+
super_sub_partitions_list="my_.*\.img|\
1010
mi_ext\.img|\
1111
odm\.img|odm_dlkm\.img|\
1212
product\.img|\

resources/module_codes/cn/extract.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function extract_single_img {
4545
matching_imgs=()
4646
for img in "$WORK_DIR/$current_workspace"/*.img; do
4747
img_name=$(basename "$img")
48-
if [[ "$img_name" =~ ^($super_sub-partitions_list)$ ]]; then
48+
if [[ "$img_name" =~ ^($super_sub_partitions_list)$ ]]; then
4949
matching_imgs+=("$img")
5050
fi
5151
done
@@ -285,11 +285,11 @@ function extract_img {
285285
for file in "$WORK_DIR/$current_workspace"/*.{img,elf,melf,mbn,bin,fv,pit}; do
286286
filename=$(basename "$file")
287287
if [ -f "$WORK_DIR/$current_workspace/optics.img" ]; then
288-
if [ "$filename" != "super.img" ] && [[ "$filename" != vbmeta*.img ]] && [[ "$filename" != "optics.img" ]] && ! [[ "$filename" =~ ^($super_sub-partitions_list)$ ]]; then
288+
if [ "$filename" != "super.img" ] && [[ "$filename" != vbmeta*.img ]] && [[ "$filename" != "optics.img" ]] && ! [[ "$filename" =~ ^($super_sub_partitions_list)$ ]]; then
289289
mv -f "$file" "$WORK_DIR/$current_workspace/Ready-to-flash/images/" 2>/dev/null
290290
fi
291291
else
292-
if [ "$filename" != "super.img" ] && ! [[ "$filename" =~ ^($super_sub-partitions_list)$ ]]; then
292+
if [ "$filename" != "super.img" ] && ! [[ "$filename" =~ ^($super_sub_partitions_list)$ ]]; then
293293
mv -f "$file" "$WORK_DIR/$current_workspace/Ready-to-flash/images/" 2>/dev/null
294294
fi
295295
fi

resources/module_codes/cn/make_super.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function package_super_image {
206206
mkdir -p "$WORK_DIR/$current_workspace/Extracted-files/super"
207207
detected_files=()
208208
for file in "$WORK_DIR/$current_workspace/Repacked/"*; do
209-
if [[ -f "$file" && $(basename "$file") =~ ^($super_sub-partitions_list)$ ]]; then
209+
if [[ -f "$file" && $(basename "$file") =~ ^($super_sub_partitions_list)$ ]]; then
210210
detected_files+=("$file")
211211
fi
212212
done
@@ -250,7 +250,7 @@ function package_super_image {
250250
forbidden_files=()
251251
for file in "${real_img_files[@]}"; do
252252
filename=$(basename "$file")
253-
if ! [[ "$filename" =~ ^($super_sub-partitions_list)$ ]]; then
253+
if ! [[ "$filename" =~ ^($super_sub_partitions_list)$ ]]; then
254254
forbidden_files+=("$file")
255255
fi
256256
done

resources/module_codes/en/extract.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function extract_single_img {
4545
matching_imgs=()
4646
for img in "$WORK_DIR/$current_workspace"/*.img; do
4747
img_name=$(basename "$img")
48-
if [[ "$img_name" =~ ^($super_sub-partitions_list)$ ]]; then
48+
if [[ "$img_name" =~ ^($super_sub_partitions_list)$ ]]; then
4949
matching_imgs+=("$img")
5050
fi
5151
done
@@ -285,11 +285,11 @@ function extract_img {
285285
for file in "$WORK_DIR/$current_workspace"/*.{img,elf,melf,mbn,bin,fv,pit}; do
286286
filename=$(basename "$file")
287287
if [ -f "$WORK_DIR/$current_workspace/optics.img" ]; then
288-
if [ "$filename" != "super.img" ] && [[ "$filename" != vbmeta*.img ]] && [[ "$filename" != "optics.img" ]] && ! [[ "$filename" =~ ^($super_sub-partitions_list)$ ]]; then
288+
if [ "$filename" != "super.img" ] && [[ "$filename" != vbmeta*.img ]] && [[ "$filename" != "optics.img" ]] && ! [[ "$filename" =~ ^($super_sub_partitions_list)$ ]]; then
289289
mv -f "$file" "$WORK_DIR/$current_workspace/Ready-to-flash/images/" 2>/dev/null
290290
fi
291291
else
292-
if [ "$filename" != "super.img" ] && ! [[ "$filename" =~ ^($super_sub-partitions_list)$ ]]; then
292+
if [ "$filename" != "super.img" ] && ! [[ "$filename" =~ ^($super_sub_partitions_list)$ ]]; then
293293
mv -f "$file" "$WORK_DIR/$current_workspace/Ready-to-flash/images/" 2>/dev/null
294294
fi
295295
fi

resources/module_codes/en/make_super.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function package_super_image {
206206
mkdir -p "$WORK_DIR/$current_workspace/Extracted-files/super"
207207
detected_files=()
208208
for file in "$WORK_DIR/$current_workspace/Repacked/"*; do
209-
if [[ -f "$file" && $(basename "$file") =~ ^($super_sub-partitions_list)$ ]]; then
209+
if [[ -f "$file" && $(basename "$file") =~ ^($super_sub_partitions_list)$ ]]; then
210210
detected_files+=("$file")
211211
fi
212212
done
@@ -250,7 +250,7 @@ function package_super_image {
250250
forbidden_files=()
251251
for file in "${real_img_files[@]}"; do
252252
filename=$(basename "$file")
253-
if ! [[ "$filename" =~ ^($super_sub-partitions_list)$ ]]; then
253+
if ! [[ "$filename" =~ ^($super_sub_partitions_list)$ ]]; then
254254
forbidden_files+=("$file")
255255
fi
256256
done

start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ for script in "$(dirname "$0")/resources/module_codes/cn"/*.sh \
66
source "$script"
77
done
88
source "$(dirname "$0")/resources/my_tools/nice_rom/NiceRom.sh"
9-
super_sub-partitions_list="my_.*\.img|\
9+
super_sub_partitions_list="my_.*\.img|\
1010
mi_ext\.img|\
1111
odm\.img|odm_dlkm\.img|\
1212
product\.img|\

0 commit comments

Comments
 (0)