Check if private folder exists on update

This commit is contained in:
gpkvt 2023-07-15 13:58:07 +02:00
parent c2de6e3d23
commit d3926e346e
1 changed files with 4 additions and 2 deletions

View File

@ -42,8 +42,10 @@ cd ${GIT_ROOT}
if [[ ${1} == "update" ]]; then
echo "Updating repos"
cd ${GIT_ROOT}/private/
git pull origin main
if [[ -d ${GIT_ROOT}/private/ ]]; then
cd ${GIT_ROOT}/private/
git pull origin main
fi
cd ${GIT_ROOT}
git pull origin main