This commit is contained in:
liankong
2025-03-29 22:33:06 +08:00

View File

@@ -39,7 +39,12 @@ perform_cleanup() {
# Sets up or update KernelSU environment
setup_kernelsu() {
echo "[+] Setting up KernelSU..."
test -d "$GKI_ROOT/KernelSU" || git clone https://github.com/ShirkNeko/SukiSU-Ultra KernelSU && echo "[+] Repository cloned."
# Clone the repository and rename it to KernelSU
if [ ! -d "$GKI_ROOT/KernelSU" ]; then
git clone https://github.com/ShirkNeko/SukiSU-Ultra SukiSU-Ultra
mv SukiSU-Ultra KernelSU
echo "[+] Repository cloned and renamed to KernelSU."
fi
cd "$GKI_ROOT/KernelSU"
git stash && echo "[-] Stashed current changes."
if [ "$(git status | grep -Po 'v\d+(\.\d+)*' | head -n1)" ]; then
@@ -72,4 +77,4 @@ elif [ "$1" = "--cleanup" ]; then
else
initialize_variables
setup_kernelsu "$@"
fi
fi