Skip to content

Commit 3bb4346

Browse files
committed
Ignore multi lines
+ fix ``warning: command substitution: ignored null byte in input``
1 parent 29aadc0 commit 3bb4346

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
@@ -61,7 +61,7 @@ jobs:
6161
- name: Un-SNAP
6262
run: |
6363
modules=("") # root
64-
modules+=($(grep -oP '(?<=module>)[^<]+' 'pom.xml'))
64+
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
6565
for i in "${modules[@]}"
6666
do
6767
echo "Processing $i/pom.xml"
@@ -206,7 +206,7 @@ jobs:
206206
- name: Inc Version and SNAP
207207
run: |
208208
modules=("") # root
209-
modules+=($(grep -oP '(?<=module>)[^<]+' 'pom.xml'))
209+
modules+=($(grep -ozP '(?<=module>)[^<]+' 'pom.xml' | tr -d '\0'))
210210
for i in "${modules[@]}"
211211
do
212212
echo "Processing $i/pom.xml"

0 commit comments

Comments
 (0)