From 60f0a721ceace1b82a59ef3be15cd0cb9e20e13f Mon Sep 17 00:00:00 2001 From: Cloud_Yun <120697095+yspbwx2010@users.noreply.github.com> Date: Thu, 17 Jul 2025 19:37:31 +0900 Subject: [PATCH] script: Simplify repository cloning logic (#283) Rather than cloning to SukiSU-Ultra and renaming it KernelSU, it would be better to clone it directly as KernelSU. Signed-off-by: Cloud_Yun <1770669041@qq.com> --- kernel/setup.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/setup.sh b/kernel/setup.sh index d013bfe2..a9e88b88 100755 --- a/kernel/setup.sh +++ b/kernel/setup.sh @@ -39,11 +39,10 @@ perform_cleanup() { # Sets up or update KernelSU environment setup_kernelsu() { echo "[+] Setting up KernelSU..." - # Clone the repository and rename it to KernelSU + # Clone the repository if [ ! -d "$GKI_ROOT/KernelSU" ]; then - git clone https://github.com/SukiSU-Ultra/SukiSU-Ultra SukiSU-Ultra - mv SukiSU-Ultra KernelSU - echo "[+] Repository cloned and renamed to KernelSU." + git clone https://github.com/SukiSU-Ultra/SukiSU-Ultra KernelSU + echo "[+] Repository cloned." fi cd "$GKI_ROOT/KernelSU" git stash && echo "[-] Stashed current changes." @@ -77,4 +76,4 @@ elif [ "$1" = "--cleanup" ]; then else initialize_variables setup_kernelsu "$@" -fi \ No newline at end of file +fi