From 53ff4f59caef58adb4d12eda17ce5b230acde298 Mon Sep 17 00:00:00 2001 From: Emil Sjolander Date: Mon, 15 Aug 2016 09:15:08 -0700 Subject: [PATCH] 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 --- format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}