diff --git a/format.sh b/format.sh index f12a7a3f54..73eb35b3e9 100755 --- a/format.sh +++ b/format.sh @@ -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