Skip to content

Commit 7ab0f5b

Browse files
committed
PRODSEC-1585 correct script error
1 parent 08cdd43 commit 7ab0f5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/maven-master-pulls.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434

3535
- name: Check local context
3636
run: |
37-
if find . -type d -name "target" | grep -q .; then
38-
if [ -n "$matches" ]; then
39-
echo "Target directory found at:"
40-
echo "$matches"
37+
matches=$(find . -type d -name "target")
38+
if [ -n "$matches" ]; then
39+
echo "Target directory found at:"
40+
echo "$matches"
4141
else
4242
echo "Target directory does not exist."
4343
echo "$PWD"

0 commit comments

Comments
 (0)