Skip to content

Commit

Permalink
other form of if
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Dec 15, 2022
1 parent 69b9b65 commit 0bd12b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/config/countfiles.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# find ~/repo/./target/surefire-reports -iname "*.txt" -exec grep -Li "Failures: 0" {} \+
number_of_failures=`grep -L -r -i "Failures: 0" ~/repo/./target/surefire-reports/*.txt | wc -l`
if (( $number_of_failures != 0 )); then
if [ "$number_of_failures" -ne "0" ]; then
echo $number_of_failures
return 1
exit 2
fi

0 comments on commit 0bd12b7

Please sign in to comment.