aboutsummaryrefslogtreecommitdiff
path: root/.custom-format.py
diff options
context:
space:
mode:
authorRuben ten Hove <git@rhtenhove.nl>2022-07-04 22:36:06 +0000
committerRuben ten Hove <git@rhtenhove.nl>2022-07-04 22:36:06 +0000
commit0da935183fcc33ba81b9153247069465a1681fe2 (patch)
treecc1821095d87d2e8b7f6395d2b8daae4b82c02a7 /.custom-format.py
parent4848c8d24cb3d790838bebb06450962939dd082b (diff)
downloadAFLplusplus-0da935183fcc33ba81b9153247069465a1681fe2.tar.gz
allow unset env var
Diffstat (limited to '.custom-format.py')
-rwxr-xr-x.custom-format.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/.custom-format.py b/.custom-format.py
index f9301585..428d7b0d 100755
--- a/.custom-format.py
+++ b/.custom-format.py
@@ -27,7 +27,7 @@ with open(".clang-format") as f:
fmt = f.read()
CURRENT_LLVM = os.getenv('LLVM_VERSION', 14)
-CLANG_FORMAT_BIN = os.getenv("CLANG_FORMAT_BIN")
+CLANG_FORMAT_BIN = os.getenv("CLANG_FORMAT_BIN", "")
if shutil.which(CLANG_FORMAT_BIN) is None:
CLANG_FORMAT_BIN = f"clang-format-{CURRENT_LLVM}"