From 0a9d348710052c8f09ccaca22bf3be38780084c3 Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 4 Aug 2024 08:43:07 -0700 Subject: [PATCH] added option Added the inplace editing option. --- otto.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otto.sh b/otto.sh index f8f8e0e..9b40d76 100755 --- a/otto.sh +++ b/otto.sh @@ -19,13 +19,13 @@ format_source_code () { #Get a list of all C files source_c_files=$(find ./src -name '*.c') for f in $source_c_files; do - clang-format -style=.clang-format $f + clang-format -i -style=.clang-format $f done #Get a list of all H files source_h_files=$(find ./src -name '*.h') for f in $source_h_files; do - clang-format -style=.clang-format $f + clang-format -i -style=.clang-format $f done echo "Applying Formating standard!"