From a0c34b40c690e18e98128a59ca09338c36675dad Mon Sep 17 00:00:00 2001 From: Terminator850 <47839764+terminator850@users.noreply.github.com> Date: Thu, 13 Apr 2023 12:30:32 +0800 Subject: [PATCH] Ensure the stability of use (#380) I think we can add tag selection commands in the setup.sh script, such as git checkout v0.5.1, to ensure the stability of use #379 --- kernel/setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/setup.sh b/kernel/setup.sh index 5ee6b1aa..397861cf 100755 --- a/kernel/setup.sh +++ b/kernel/setup.sh @@ -18,6 +18,7 @@ fi test -d "$GKI_ROOT/KernelSU" || git clone https://github.com/tiann/KernelSU cd "$GKI_ROOT/KernelSU" git stash && git pull +git checkout "$(git describe --abbrev=0 --tags)" cd "$GKI_ROOT" echo "[+] GKI_ROOT: $GKI_ROOT"