Skip to content

Commit

Permalink
修复bug,删去多余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
NightRainMilkyWay authored Aug 25, 2024
1 parent 4f49aea commit 424125a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions magisk/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ echo "- 安卓版本:$(getprop ro.build.version.release)"
echo "- SDK:$(getprop ro.build.version.sdk)"
echo "- 内核版本:$(cat /proc/version)"

string="$(cat /proc/version)"
patterns=("Pandora" "Yuni" "Angel")

for pattern in "${patterns[@]}"; do
if [[ "$string" == *"$pattern"* ]]; then
echo "当前内核不支持安装'$pattern'."
break
fi
done

unzip -o "$ZIPFILE" -x 'META-INF/*' -d $MODPATH >&2
chmod -R 0777 $MODPATH
Expand Down

0 comments on commit 424125a

Please sign in to comment.