build.sh: Use depth for cloning AnyKernel3

Change-Id: I3ecaa0c0810fcece5c3df0af2ca3195d913dcca8
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
Richard Raya 2024-04-27 11:16:54 -03:00
parent 6732aafda9
commit 239aecb5d1

View File

@ -63,7 +63,7 @@ if [ -f "$kernel" ] && [ -f "$dtb" ] && [ -f "$dtbo" ]; then
echo -e "\nKernel compiled succesfully! Zipping up...\n"
if [ -d "$AK3_DIR" ]; then
cp -r $AK3_DIR AnyKernel3
elif ! git clone -q https://github.com/rd-stuffs/AnyKernel3 -b FSociety; then
elif ! git clone -q --depth=1 https://github.com/rd-stuffs/AnyKernel3 -b FSociety; then
echo -e "\nAnyKernel3 repo not found locally and couldn't clone from GitHub! Aborting..."
exit 1
fi