diff --git a/tests/ci/repo_check.sh b/tests/ci/repo_check.sh index 6eb0770da6..73923e58af 100755 --- a/tests/ci/repo_check.sh +++ b/tests/ci/repo_check.sh @@ -101,12 +101,13 @@ for submodule in $submodules; do workspace=${GITHUB_WORKSPACE}'/'${pathes[$submodule]} gitapi=$(echo "$url" | sed 's/github.com/api.github.com\/repos/g')'/branches/'$branch get_shas $url $gitapi $branch $workspace + + if [[ $flag_sync=false ]]; then + echo "** ${GITHUB_WORKSPACE} **NOT** up to date" + exit 1 + fi done -if [[ ! $flag_sync ]]; then - echo "** ${GITHUB_WORKSPACE} **NOT** up to date" - exit 1 -fi echo "** ${GITHUB_WORKSPACE} up to date **"