diff --git a/reformat-all.sh b/reformat-all.sh index 8be23e0..4964df2 100644 --- a/reformat-all.sh +++ b/reformat-all.sh @@ -1,7 +1,7 @@ #!/bin/sh ALL_FORMATABLE_FILES=$(find src include tests example -name '*.cpp' -o -name '*.hpp') -CLANG_FORMAT_ARGS="-i -style=file --verbose" +CLANG_FORMAT_ARGS="-style=file --verbose" echo "*** Modbus Clang Format Wrapper **" clang-format --version @@ -9,5 +9,5 @@ clang-format --version if [[ "$DRY" = "TRUE" ]]; then exec clang-format --dry-run $CLANG_FORMAT_ARGS $ALL_FORMATABLE_FILES else - exec clang-format $CLANG_FORMAT_ARGS $ALL_FORMATABLE_FILES + exec clang-format -i $CLANG_FORMAT_ARGS $ALL_FORMATABLE_FILES fi