Skip to content

Commit

Permalink
else -> fi
Browse files Browse the repository at this point in the history
  • Loading branch information
= mlm-games committed Sep 10, 2024
1 parent 65f61dc commit 1bb6f53
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions kernel/setup-subm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ perform_cleanup() {
# Sets up or update KernelSU environment
setup_kernelsu() {
echo "[+] Setting up KernelSU..."
test -d "$KERNEL_DIR/KernelSU"
git submodule add https://github.com/mlm-games/KernelSU-Non-GKI KernelSU
test -d "$KERNEL_DIR/KernelSU" || git submodule add https://github.com/mlm-games/KernelSU-Non-GKI KernelSU
git submodule update --init --recursive

if [ -n "$1" ]; then
(cd KernelSU && git checkout "$1") && echo "[-] Checked out $1." || echo "[-] Failed to checkout $1."
else
fi

# Add entries in Makefile and Kconfig if not already existing
grep -q "kernelsu" "$DRIVER_MAKEFILE" || printf "\nobj-\$(CONFIG_KSU) += kernelsu/\n" >> "$DRIVER_MAKEFILE" && echo "[+] Modified Makefile."
Expand All @@ -65,4 +64,4 @@ elif [ "$1" = "--cleanup" ]; then
else
initialize_variables
setup_kernelsu "$@"
fi
fi

0 comments on commit 1bb6f53

Please sign in to comment.