Skip to content

Commit fe88154

Browse files
Updated linux format validation script to check if there is no system clang-format
1 parent cd7c15b commit fe88154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BuildTools/FormatValidation/validate_format_linux_implementation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function find_validator_bin() {
1414
if [ $? -ne 0 ]; then
1515
## BIN failed to run, try to get a system installed clang-format
1616
local SYS_BIN=$(which clang-format 2> /dev/null)
17-
if [ $? -ne 0 ]; then
17+
if [ $? -ne 0 ] || [ -z "$SYS_BIN" ]; then
1818
errcho "WARNING: skipping format validation as no suitable executable was found"
1919
BIN=""
2020
else

0 commit comments

Comments
 (0)