Skip to content

Commit

Permalink
使用官方链接获取版本信息
Browse files Browse the repository at this point in the history
  • Loading branch information
Seshiria committed May 24, 2024
1 parent d0d170d commit a98966e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Patch_ksu() {
echo "CONFIG_OVERLAY_FS=y" >>arch/arm64/configs/lineage_oneplus5_defconfig
#修补kernelsu/makefile
## https://gist.github.com/0penBrain/7be59a48aba778c955d992aa69e524c5
KSU_GIT_VERSION=$(curl -I -k "https://api.github.com/repos/Seshiria/KernelSU/commits?per_page=1&sha=$KERNELSU_HASH" | \
KSU_GIT_VERSION=$(curl -I -k "https://api.github.com/repos/tiann/KernelSU/commits?per_page=1&sha=$KERNELSU_HASH" | \
sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p')
if grep -q import_KSU_GIT_VERSION KernelSU/kernel/Makefile ;then
echo "The patch already exists, you may need to reset the relevant files of ksu"
Expand Down

0 comments on commit a98966e

Please sign in to comment.