summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex James <theracermaster@gmail.com>2019-05-09 10:40:46 -0500
committerPatrick Georgi <pgeorgi@google.com>2019-05-15 19:46:39 +0000
commit7aeeb4839023867d9a6c56854fb2e8a2143bf788 (patch)
treec9999752650a933e0ebdf56dd9a4bcd1ba3b7a72
parent8b7a16145254deff4ba5191463707d6981017357 (diff)
downloadcoreboot-7aeeb4839023867d9a6c56854fb2e8a2143bf788.tar.xz
util/lint/check-style: Don't hardcode clang-format path
Signed-off-by: Alex James <theracermaster@gmail.com> Change-Id: I688cb60c98370bf74aa8554bab43594ff84c4e24 Reviewed-on: https://review.coreboot.org/c/coreboot/+/32707 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
-rwxr-xr-xutil/lint/check-style2
1 files changed, 1 insertions, 1 deletions
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