diff --git a/format.sh b/format.sh index eef578c1..7b96ee0b 100755 --- a/format.sh +++ b/format.sh @@ -27,4 +27,4 @@ clang-format \ SpaceAfterCStyleCast: true, \ UseTab: Never, \ }" "$@" \ - -i ./**/*.{h,c,cpp} + -i $(dirname $0)/**/*.{h,c,cpp}