Tools/check_submodules.sh revert attempted submodule improvements

- this wasn't helping break out of submodule issues
This commit is contained in:
Daniel Agar 2021-11-07 20:11:02 -05:00
parent 4627f5514e
commit 3b68f8e510
1 changed files with 4 additions and 6 deletions

View File

@ -7,10 +7,9 @@ if [[ -f $1"/.git" || -d $1"/.git" ]]; then
# always update within CI environment or configuring withing VSCode CMake where you can't interact
if [ "$CI" == "true" ] || [ -n "${VSCODE_PID+set}" ]; then
git submodule --quiet update --init --recursive --force -- $1 || true
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 --jobs=8 -- $1 || true
git submodule --quiet update --init --recursive --jobs=8 -- $1
exit 0
fi
@ -50,9 +49,8 @@ if [[ -f $1"/.git" || -d $1"/.git" ]]; then
fi
fi
else
git submodule --quiet update --init --recursive -- $1 || true
git submodule --quiet sync --recursive -- $1
git submodule --quiet update --init --recursive -- $1 || true
git submodule --quiet sync --recursive --quiet -- $1
git submodule --quiet update --init --recursive -- $1 || true
git submodule --quiet update --init --recursive -- $1
fi