From 9c8e813642847b1d0d727a3ec8613f05ae6473b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=BB=E3=83=AA=E3=82=AB=E3=83=BB=E3=82=B7=E3=83=AB?= =?UTF-8?q?=E3=83=95=E3=82=A3=E3=83=AB?= <64072399+natsumerinchan@users.noreply.github.com> Date: Thu, 13 Apr 2023 22:15:17 +0800 Subject: [PATCH] Kernel: Fix "bash: line 21: $1: unbound variable" (#385) --- kernel/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/setup.sh b/kernel/setup.sh index 108d2104..856d1cd6 100755 --- a/kernel/setup.sh +++ b/kernel/setup.sh @@ -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"