From 0ccbb80df9b6b828b0ad76c5a70d013e3c1eb477 Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Thu, 17 Dec 2015 03:36:11 -0800 Subject: [PATCH] quote infer result dir shell variable Summary: public closes #209 Reviewed By: martinoluca Differential Revision: D2765557 fb-gh-sync-id: c5b54c1 --- infer/lib/xcode_wrappers/clang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infer/lib/xcode_wrappers/clang b/infer/lib/xcode_wrappers/clang index 423b2df28..1e9f27c2c 100755 --- a/infer/lib/xcode_wrappers/clang +++ b/infer/lib/xcode_wrappers/clang @@ -9,7 +9,7 @@ export FCP_CLANG_COMPILER="${CLANG_WRAPPERS_PATH%/}/clang_wrapper$XX"; export FCP_RESULTS_DIR="${INFER_RESULTS_DIR}"; export FCP_USE_STD_CLANG_CMD="1"; -if [ -z $INFER_RESULTS_DIR ]; then +if [ -z "$INFER_RESULTS_DIR" ]; then # this redirects to the compiler without adding any FCP flag # this is because xcode requires message category info from the compiler # and invokes it without any env var set.