diff options
author | Ruben ten Hove <git@rhtenhove.nl> | 2022-07-04 22:36:06 +0000 |
---|---|---|
committer | Ruben ten Hove <git@rhtenhove.nl> | 2022-07-04 22:36:06 +0000 |
commit | 0da935183fcc33ba81b9153247069465a1681fe2 (patch) | |
tree | cc1821095d87d2e8b7f6395d2b8daae4b82c02a7 | |
parent | 4848c8d24cb3d790838bebb06450962939dd082b (diff) | |
download | afl++-0da935183fcc33ba81b9153247069465a1681fe2.tar.gz |
allow unset env var
-rwxr-xr-x | .custom-format.py | 2 |
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}" |