Skip to content

Commit a942b39

Browse files
committed
fix how we detect an unset variable
1 parent ec7010a commit a942b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ci/scripts/setup-environment.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
1111
# Since matrix variables are readonly in Azure Pipelines, we take
1212
# INITIAL_RUST_CONFIGURE_ARGS and establish RUST_CONFIGURE_ARGS
1313
# which downstream steps can alter
14-
if [[ -n "${INITIAL_RUST_CONFIGURE_ARGS}" ]]; then
14+
if [[ -v INITIAL_RUST_CONFIGURE_ARGS ]]; then
1515
ciCommandSetEnv RUST_CONFIGURE_ARGS "${INITIAL_RUST_CONFIGURE_ARGS}"
1616
fi
1717

0 commit comments

Comments
 (0)