diff --git a/.gitlab-ci/common/generate-env.sh b/.gitlab-ci/common/generate-env.sh index 937ab8ea6d0..58e92490381 100755 --- a/.gitlab-ci/common/generate-env.sh +++ b/.gitlab-ci/common/generate-env.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh for var in \ ASAN_OPTIONS \ @@ -106,8 +106,8 @@ for var in \ VK_CPU \ VK_DRIVER \ VK_ICD_FILENAMES \ - ; do - if [ -n "${!var+x}" ]; then - echo "export $var=${!var@Q}" - fi + ; +do + eval val=\$${var} + [ -z "$val" ] || echo "export $var='$val'" done