From 0da935183fcc33ba81b9153247069465a1681fe2 Mon Sep 17 00:00:00 2001 From: Ruben ten Hove Date: Mon, 4 Jul 2022 22:36:06 +0000 Subject: allow unset env var --- .custom-format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.custom-format.py') 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}" -- cgit 1.4.1