Initialize LoveIt starter submodules
This commit is contained in:
parent
8383eb5101
commit
a6724b1575
1 changed files with 7 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ set -eu
|
||||||
|
|
||||||
THEME_DIR="themes/LoveIt"
|
THEME_DIR="themes/LoveIt"
|
||||||
THEME_REPO="https://github.com/dillonzq/LoveIt.git"
|
THEME_REPO="https://github.com/dillonzq/LoveIt.git"
|
||||||
THEME_REF="${LOVEIT_REF:-0.3.x}"
|
THEME_REF="${LOVEIT_REF:-master}"
|
||||||
|
|
||||||
mkdir -p themes
|
mkdir -p themes
|
||||||
|
|
||||||
|
|
@ -16,4 +16,10 @@ else
|
||||||
git clone --depth 1 --branch "${THEME_REF}" "${THEME_REPO}" "${THEME_DIR}"
|
git clone --depth 1 --branch "${THEME_REF}" "${THEME_REPO}" "${THEME_DIR}"
|
||||||
fi
|
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}"
|
echo "LoveIt theme is ready in ${THEME_DIR}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue