about summary refs log tree commit diff homepage
path: root/scripts/build/p-sanitizer-linux.inc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/p-sanitizer-linux.inc')
-rw-r--r--scripts/build/p-sanitizer-linux.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/build/p-sanitizer-linux.inc b/scripts/build/p-sanitizer-linux.inc
index fa9f35f3..6cfd5920 100644
--- a/scripts/build/p-sanitizer-linux.inc
+++ b/scripts/build/p-sanitizer-linux.inc
@@ -15,23 +15,23 @@ setup_artifact_variables_sanitizer() {
   SANITIZER_BITCODE_CC="${bin_path}/clang"
   SANITIZER_BITCODE_CXX="${bin_path}/clang++"
 
-  if [[ -z ${SANITIZER_C_COMPILER:=} ]]; then
+  if [[ -z "${SANITIZER_C_COMPILER:-}" ]]; then
     SANITIZER_C_COMPILER="${SANITIZER_BITCODE_CC}"
   fi
 
-  if [[ -z ${SANITIZER_CXX_COMPILER:=} ]]; then
+  if [[ -z "${SANITIZER_CXX_COMPILER:-}" ]]; then
     SANITIZER_CXX_COMPILER="${SANITIZER_BITCODE_CXX}"
   fi
 }
 
 # Check if the binary artifact is installed
 is_installed_sanitizer() {
-  if [[ -z ${SANITIZER_BUILD:-} ]]; then
+  if [[ -z "${SANITIZER_BUILD:-}" ]]; then
    return 1
   fi
   local SANITIZER_LLVM_VERSION_MAJOR="${SANITIZER_LLVM_VERSION/.*/}"
   local SANITIZER_LLVM_VERSION_MINOR="${SANITIZER_LLVM_VERSION/*./}"
-  local version=="${SANITIZER_LLVM_VERSION_MAJOR}"
+  local version="${SANITIZER_LLVM_VERSION_MAJOR}"
 
   # Check if clang with the right version exists
   which "clang-${version}"