utils/environment.h: Protect against unintentionally wrongly set env var XRAY_VIVADO

Signed-off-by: Adrien Prost-Boucle <adrien.prost-boucle@laposte.net>
This commit is contained in:
Adrien Prost-Boucle 2022-03-05 17:27:27 +01:00 committed by Unai Martinez-Corral
parent 19bcb5cad0
commit 7044d85649
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export XRAY_VIVADO="${XRAY_UTILS_DIR}/vivado.sh"
# Verify an approved version is in use
export XRAY_VIVADO_SETTINGS="${XRAY_VIVADO_SETTINGS:-/opt/Xilinx/Vivado/2017.2/settings64.sh}"
# Vivado v2017.2 (64-bit)
if [ $(${XRAY_VIVADO} -h |grep Vivado |cut -d\ -f 2) != "v2017.2" ] ; then
if [ "$(${XRAY_VIVADO} -h |grep Vivado |cut -d\ -f 2)" != "v2017.2" ] ; then
echo "Requires Vivado 2017.2. See https://github.com/SymbiFlow/prjxray/issues/14"
# Can't exit since sourced script
# Trash a key environment variable to preclude use