It's silly to be setting (and logging the setting of!) all the env vars we
*didn't* set in a job.
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5433>
VK_DRIVER \
; do
val=`echo ${!var} | sed 's|"||g'`
- echo "export $var=\"${val}\"" >> $rootfs_dst/set-job-env-vars.sh
+ if [ -n "$val" ]; then
+ echo "export $var=\"${val}\"" >> $rootfs_dst/set-job-env-vars.sh
+ fi
done
echo "Variables passed through:"
cat $rootfs_dst/set-job-env-vars.sh