Skip to content

Commit

Permalink
build_script: ksu false fix
Browse files Browse the repository at this point in the history
  • Loading branch information
retrozenith committed Feb 14, 2024
1 parent 3355b71 commit c585830
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ elif [ "$DEVICE_MODEL" == "SM-G990B2" ]; then
DEVICE_NAME="r9q2"
DEFCONFIG=vendor/r9q_eur_openx2_defconfig
else
echo "Config not found"
exit
fi

Expand All @@ -34,14 +35,12 @@ if [ "$KSU" == "true" ]; then
echo "Fetching ...."
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -
fi
elif [ "$KSU" == "false" ]; then
else
echo "KSU disabled"
ZIP_NAME="AQUA_"$DEVICE_NAME"_"$DEVICE_MODEL"_"$(date +%d%m%y-%H%M)""
if [ -d "KernelSU" ]; then
git reset HEAD --hard
fi
else
ZIP_NAME="AQUA_"$DEVICE_NAME"_"$DEVICE_MODEL"_"$(date +%d%m%y-%H%M)""
echo "KSU is not set, building as is"
fi

make $MAKE_PARAMS $DEFCONFIG
Expand Down

0 comments on commit c585830

Please sign in to comment.