diff --git a/build-all.sh b/build-all.sh
index ffa2e82545b29ac728618c41901b027483ccd6c9..7beadcb085b837168336df3b5e3ea468eea83e44 100755
--- a/build-all.sh
+++ b/build-all.sh
@@ -137,7 +137,7 @@ scons $SCONSDEBUG || exit 1
 cd $IRDB_TRANSFORMS
 scons $SCONSDEBUG -j 3 || exit 1
 
-if [[ -d $DAFFY_HOME ]] && [[ $(uname -p) == 'x86_64' ]]; then
+if [[ -d "$DAFFY_HOME" ]] && [[ $(uname -p) == 'x86_64' ]]; then
 	cd $DAFFY_HOME
 	./setup_cfar.sh || exit 1
 fi