Skip to content

Commit

Permalink
make-dist: Quiet submodule operations in Jenkins
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Nov 8, 2024
1 parent 94505eb commit 80674a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion make-dist
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80674a3

Please sign in to comment.