fix preinstall script

This commit is contained in:
Simon Larsen 2023-04-18 14:56:58 +01:00
parent fe20747317
commit 0a52eb49f4
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -80,8 +80,12 @@ fi
# if this script is not running in CI/CD
if [ -z "$CI_PIPELINE_ID" ]
then
# try to clone - if folder is already there pull latest for that branch
git pull
if [[ $IS_DOCKER == "true" ]]
then
echo "Running in docker container. Skipping git pull."
else
git pull
fi
fi
cd ..