fix test for RTE_SDK variable in csh profile

In csh, undefined variables do not expand to the empty string.  Use the
$? csh substitution to check if the variable is defined.

Fixes: 4821395c6a ("- Avoid variable expansion in the spec here-documents during build")
This commit is contained in:
Eric Kinzie 2019-02-16 13:14:11 -05:00
parent ec3e4597c0
commit 83d917e644

View File

@ -255,7 +255,7 @@ fi
EOF
cat << EOF > %{buildroot}/%{_sysconfdir}/profile.d/dpdk-sdk-%{_arch}.csh
if ( ! \$RTE_SDK ) then
if ( ! \$?RTE_SDK ) then
setenv RTE_SDK "%{sdkdir}"
setenv RTE_TARGET "%{target}"
setenv RTE_INCLUDE "%{incdir}"