Merge pull request #51 from nanaian/patch-1

fix format.sh false-positive causing it to format itself
This commit is contained in:
Ethan Roseman 2020-09-13 18:53:48 -04:00 committed by GitHub
commit 72cf64fbd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ shopt -s globstar
FILES="src/**/*.c include/*.h"
if (( $# > 0 )); then
# only process .c and .h files
FILES=$(echo "$@" | sed 's/ /\n/g' | grep '.[ch]$')
FILES=$(echo "$@" | sed 's/ /\n/g' | grep '\.[ch]$')
fi
if [[ -z $FILES ]]; then