Kernel: Fix "bash: line 21: $1: unbound variable" (#385)

This commit is contained in:
セリカ・シルフィル
2023-04-13 22:15:17 +08:00
committed by GitHub
parent 7be61b9657
commit 9c8e813642

View File

@@ -18,7 +18,7 @@ fi
test -d "$GKI_ROOT/KernelSU" || git clone https://github.com/tiann/KernelSU
cd "$GKI_ROOT/KernelSU"
git stash && git pull
if [ ! "$1" ]; then
if [ -z "${1-}" ]; then
git checkout "$(git describe --abbrev=0 --tags)"
else
git checkout "$1"