about summary refs log tree commit diff
path: root/src/ci/scripts
diff options
context:
space:
mode:
authorMatt Cooper <mattc@xbox.com>2020-03-10 14:13:39 -0400
committerMatt Cooper <mattc@xbox.com>2020-03-10 14:13:39 -0400
commita942b3946521db46ba653693f5d6e477e39bbb3b (patch)
treec2ffe7e59e4d23eb35058cd7903b40ddfbcf4dec /src/ci/scripts
parentec7010a1a8ae59a7538e649218665497306eb8b1 (diff)
downloadrust-a942b3946521db46ba653693f5d6e477e39bbb3b.tar.gz
rust-a942b3946521db46ba653693f5d6e477e39bbb3b.zip
fix how we detect an unset variable
Diffstat (limited to 'src/ci/scripts')
-rwxr-xr-xsrc/ci/scripts/setup-environment.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ci/scripts/setup-environment.sh b/src/ci/scripts/setup-environment.sh
index 9fd07a37fcc..4f7641d50fa 100755
--- a/src/ci/scripts/setup-environment.sh
+++ b/src/ci/scripts/setup-environment.sh
@@ -11,7 +11,7 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
 # Since matrix variables are readonly in Azure Pipelines, we take
 # INITIAL_RUST_CONFIGURE_ARGS and establish RUST_CONFIGURE_ARGS
 # which downstream steps can alter
-if [[ -n "${INITIAL_RUST_CONFIGURE_ARGS}" ]]; then
+if [[ -v INITIAL_RUST_CONFIGURE_ARGS ]]; then
     ciCommandSetEnv RUST_CONFIGURE_ARGS "${INITIAL_RUST_CONFIGURE_ARGS}"
 fi