From 1bdff053a53555ed9fd271e918f56b402532fc7a Mon Sep 17 00:00:00 2001 From: Tal Hayon Date: Sat, 8 Jan 2022 11:58:44 +0200 Subject: [PATCH] format.sh: fix comment --- format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.sh b/format.sh index 13ba25c7..7c380c9e 100755 --- a/format.sh +++ b/format.sh @@ -27,6 +27,6 @@ clang-tidy ${TIDY_OPTS} src/**/*.c -- ${COMPILER_OPTS} &> /dev/null clang-tidy ${TIDY_OPTS} include/**/*.h -- ${COMPILER_OPTS} &> /dev/null echo "Adding missing final new lines..." -# only run sed if no line at the end of file so we don't unnecessarily touch the file. +# only run sed if no new line at the end of file so we don't unnecessarily touch the file. find src/ -type f -name "*.c" -exec bash -c 'if [[ -n "$(tail -c 1 {})" ]]; then sed -i -e '"'"'$a\'"'"' {}; fi' \; echo "Done formatting all files."