Skip to content

Commit 53829e0

Browse files
committed
Simplify module extraction
1 parent 7d97305 commit 53829e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
run: |
6565
mvnwPath=$(readlink -f ./mvnw)
6666
modules=("") # root
67-
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
67+
modules+=($(grep -oP '(?<=<module>)[^<]+' 'pom.xml'))
6868
for i in "${modules[@]}"
6969
do
7070
echo "Processing $i/pom.xml"
@@ -188,7 +188,7 @@ jobs:
188188
run: |
189189
mvnwPath=$(readlink -f ./mvnw)
190190
modules=("") # root
191-
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
191+
modules+=($(grep -oP '(?<=<module>)[^<]+' 'pom.xml'))
192192
for i in "${modules[@]}"
193193
do
194194
echo "Processing $i/pom.xml"

0 commit comments

Comments
 (0)