Handle git submodules

This commit is contained in:
Stefan Schlott 2022-08-26 19:25:36 +02:00
parent 3970c80747
commit c080bd1ecc

View file

@ -9,8 +9,9 @@ fi
if [[ -d "$WEBSITE_SOURCE/.git" ]] ; then if [[ -d "$WEBSITE_SOURCE/.git" ]] ; then
cd $WEBSITE_SOURCE cd $WEBSITE_SOURCE
git pull || exit 1 git pull || exit 1
git submodule update --init --recursive
else else
git clone git@github.com:cccs/cccs-website.git "$WEBSITE_SOURCE" || exit 1 git clone --recursive git@github.com:cccs/cccs-website.git "$WEBSITE_SOURCE" || exit 1
cd $WEBSITE_SOURCE cd $WEBSITE_SOURCE
fi fi