Kernel: Fix "bash: line 21: $1: unbound variable" (#385)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user