From fbc5c4846d81c0b40b299f925cbd5e96d9c38de2 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 13 Sep 2020 16:22:30 +0100 Subject: [PATCH] fix format.sh false-positive causing it to format itself --- format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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