make-dist: Quiet submodule operations in Jenkins

Signed-off-by: Zack Cerza <zack@redhat.com>
This commit is contained in:
Zack Cerza 2024-11-08 12:43:16 -07:00
parent 94505eb09e
commit 80674a3e12
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ echo "version $version"
# update submodules
echo "updating submodules..."
force=$(if git submodule usage 2>&1 | grep --quiet 'update.*--force'; then echo --force ; fi)
if ! git submodule sync || ! git submodule update $force --init --recursive --progress; then
quiet_or_progress=$(if test -n "$JENKINS_URL"; then echo --quiet; else echo --progress; fi)
if ! git submodule sync || ! git submodule update $force --init --recursive $quiet_or_progress; then
echo "Error: could not initialize submodule projects"
echo " Network connectivity might be required."
exit 1