Merge "[rdkb][common][app][Fix 2024q1 version build fail issue]"
diff --git a/setup-environment b/setup-environment
index 629e64c..b5b33ac 100755
--- a/setup-environment
+++ b/setup-environment
@@ -55,12 +55,12 @@
EOF
fi
-if [[ ! -d ../meta-filogic-logan/recipes-wifi/hostapd/files/patches ]]
+if [[ -d ../meta-filogic-logan ]] && [[ ! -d ../meta-filogic-logan/recipes-wifi/hostapd/files/patches ]]
then
sh ../meta-cmf-filogic/mtk_scripts/sync_hostapd_patch.sh hostapd
fi
-if [[ ! -d ../meta-filogic-logan/recipes-wifi/wpa-supplicant/files/patches ]]
+if [[ -d ../meta-filogic-logan ]] && [[ ! -d ../meta-filogic-logan/recipes-wifi/wpa-supplicant/files/patches ]]
then
sh ../meta-cmf-filogic/mtk_scripts/sync_hostapd_patch.sh wpa_supplicant
fi