Skip to content

Commit ebec6ef

Browse files
committed
chore: Add comment for cases where there is no sub-module
1 parent a1616a7 commit ebec6ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.kokoro/common.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ function parse_submodules() {
7171

7272
# Use grep to find the modules in the aggregator pom file
7373
# Faster than invoking mvn help:evaluate to list all the project modules
74+
# Not all modules will have sub-modules (use `|| true`) to prevent the script from failing.
7475
modules=$(grep '<module>' "$1/pom.xml" | sed 's/.*<module>\(.*\)<\/module>.*/\1/' || true)
7576
if [ -n "$modules" ]; then
7677
for submodule in $modules; do

0 commit comments

Comments
 (0)