From 7aeeb4839023867d9a6c56854fb2e8a2143bf788 Mon Sep 17 00:00:00 2001 From: Alex James Date: Thu, 9 May 2019 10:40:46 -0500 Subject: [PATCH] util/lint/check-style: Don't hardcode clang-format path Signed-off-by: Alex James Change-Id: I688cb60c98370bf74aa8554bab43594ff84c4e24 Reviewed-on: https://review.coreboot.org/c/coreboot/+/32707 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/lint/check-style | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/lint/check-style b/util/lint/check-style index 1ac51b4d1a..2237ed6295 100755 --- a/util/lint/check-style +++ b/util/lint/check-style @@ -15,7 +15,7 @@ ################################################################## # SETTINGS # set path to clang-format binary -CLANG_FORMAT="/usr/bin/clang-format" +CLANG_FORMAT="$(command -v clang-format)" # remove any older patches from previous commits. Set to true or false. # DELETE_OLD_PATCHES=false