Allow format script to be run from anywhere

Summary: Previously format script had to be run from the root directory. With this change it can be run from anywhere

Reviewed By: lucasr

Differential Revision: D3715186

fbshipit-source-id: a46bc0b49aa32f0860bb3e3097ae7b08bdccbf2e
This commit is contained in:
Emil Sjolander
2016-08-15 09:15:08 -07:00
committed by Facebook Github Bot 6
parent 28bc42a988
commit 53ff4f59ca

View File

@@ -27,4 +27,4 @@ clang-format \
SpaceAfterCStyleCast: true, \
UseTab: Never, \
}" "$@" \
-i ./**/*.{h,c,cpp}
-i $(dirname $0)/**/*.{h,c,cpp}