Skip to content

Commit 39e8e36

Browse files
committed
Do not fail when no matches found
1 parent 14fb6f6 commit 39e8e36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/lint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,12 @@ if [ "$is_release_branch" = "true" ]; then
9292
output=$(cd "$ROOT" && find . -type f \
9393
! -path "./build/lint.sh" \
9494
! -path "./vendor/*" \
95+
! -path "./docs/contributing/development.md" \
9596
! -path "./bin/*" \
9697
! -path "./.git/*" \
9798
! -name ".*" \
9899
-exec grep -R -A 100 -e "CORTEX_VERSION" {} \;)
99-
output=$(echo "$output" | grep -e "master")
100+
output=$(echo "$output" | grep -e "master" || true)
100101
if [[ $output ]]; then
101102
echo 'occurrences of "master" which should be changed to the version number:'
102103
echo "$output"

0 commit comments

Comments
 (0)