From ad9e2d99295de518c84cbb1f769c8d2fede4f02a Mon Sep 17 00:00:00 2001 From: weishu Date: Sat, 16 Mar 2024 19:02:03 +0800 Subject: [PATCH] try fix --- .github/workflows/avd-kernel.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/avd-kernel.yml b/.github/workflows/avd-kernel.yml index aa51b6258a97..261c6cfb0acb 100644 --- a/.github/workflows/avd-kernel.yml +++ b/.github/workflows/avd-kernel.yml @@ -52,6 +52,7 @@ jobs: - uses: actions/checkout@v4 with: path: KernelSU + ref: v0.8.1 fetch-depth: 0 - name: Setup need_upload @@ -88,7 +89,7 @@ jobs: ln -sf $GITHUB_WORKSPACE/KernelSU/kernel $GKI_ROOT/common/drivers/kernelsu echo "[+] Add KernelSU driver to Makefile" DRIVER_MAKEFILE=$GKI_ROOT/common/drivers/Makefile - grep -q "kernelsu" $DRIVER_MAKEFILE || echo "obj-y += kernelsu/" >> $DRIVER_MAKEFILE + grep -q "kernelsu" "$DRIVER_MAKEFILE" || printf "\nobj-y += kernelsu/\n" >> "$DRIVER_MAKEFILE" cat $DRIVER_MAKEFILE ls -al $GKI_ROOT/common/drivers ls -al $GKI_ROOT/common/drivers/kernelsu/