Skip to content
Snippets Groups Projects
Commit 25b4b633 authored by Daniel Agar's avatar Daniel Agar
Browse files

check_submodules.sh don't force update in CI

parent 87b17bed
No related branches found
No related tags found
No related merge requests found
......@@ -6,12 +6,12 @@ function check_git_submodule {
if [[ -f $1"/.git" || -d $1"/.git" ]];
then
# CI environment always force update everything
# CI environment always update
if [ "$CI" == "true" ];
then
git submodule --quiet sync --recursive -- $1
git submodule --quiet update --init --recursive --force -- $1 || true
git submodule --quiet update --init --recursive --force -- $1
git submodule --quiet update --init --recursive -- $1 || true
git submodule --quiet update --init --recursive -- $1
exit 0
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment