projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gitlab-ci: fix testing whether a variable with a given name is set or not
[mesa.git]
/
.gitlab-ci
/
bare-metal
/
rootfs-setup.sh
diff --git
a/.gitlab-ci/bare-metal/rootfs-setup.sh
b/.gitlab-ci/bare-metal/rootfs-setup.sh
index 90e9bbf9ebeaedc383fb3ef927d6e5a599827cb0..220968aa05778db2da1055134132ca7d74037bad 100644
(file)
--- a/
.gitlab-ci/bare-metal/rootfs-setup.sh
+++ b/
.gitlab-ci/bare-metal/rootfs-setup.sh
@@
-50,7
+50,7
@@
for var in \
VK_DRIVER \
; do
val=`echo ${!var} | sed 's|"||g'`
- if [ -n "$
val
" ]; then
+ if [ -n "$
{!var+x}
" ]; then
echo "export $var=\"${val}\"" >> $rootfs_dst/set-job-env-vars.sh
fi
done