Initialize LoveIt starter submodules

This commit is contained in:
xtcnet 2026-03-19 14:57:07 +07:00
parent 8383eb5101
commit a6724b1575

View file

@ -3,7 +3,7 @@ set -eu
THEME_DIR="themes/LoveIt"
THEME_REPO="https://github.com/dillonzq/LoveIt.git"
THEME_REF="${LOVEIT_REF:-0.3.x}"
THEME_REF="${LOVEIT_REF:-master}"
mkdir -p themes
@ -16,4 +16,10 @@ else
git clone --depth 1 --branch "${THEME_REF}" "${THEME_REPO}" "${THEME_DIR}"
fi
if [ -f "${THEME_DIR}/.gitmodules" ]; then
echo "Initializing LoveIt submodules..."
git -C "${THEME_DIR}" submodule sync --recursive
git -C "${THEME_DIR}" submodule update --init --recursive
fi
echo "LoveIt theme is ready in ${THEME_DIR}"