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
This commit is contained in:
Terminator850
2023-04-13 12:30:32 +08:00
committed by GitHub
parent 00856f8cb9
commit a0c34b40c6

View File

@@ -18,6 +18,7 @@ fi
test -d "$GKI_ROOT/KernelSU" || git clone https://github.com/tiann/KernelSU test -d "$GKI_ROOT/KernelSU" || git clone https://github.com/tiann/KernelSU
cd "$GKI_ROOT/KernelSU" cd "$GKI_ROOT/KernelSU"
git stash && git pull git stash && git pull
git checkout "$(git describe --abbrev=0 --tags)"
cd "$GKI_ROOT" cd "$GKI_ROOT"
echo "[+] GKI_ROOT: $GKI_ROOT" echo "[+] GKI_ROOT: $GKI_ROOT"