Skip to content

Commit 4a1e835

Browse files
mark-vieirarjernst
authored andcommitted
Guard references to VERSION_QUALIFIER environment variable
1 parent 04a4a93 commit 4a1e835

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.buildkite/scripts/dra-workflow.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if [[ "$WORKFLOW" == "snapshot" ]]; then
2929
VERSION_SUFFIX="-SNAPSHOT"
3030
fi
3131

32-
if [[ -n "$VERSION_QUALIFER" ]]; then
32+
if [[ -n "${VERSION_QUALIFER:-}" ]]; then
3333
ES_VERSION = "${ES_VERSION}-${VERSION_QUALIFER}"
3434
echo "Version qualifier specified. ES_VERSION=${ES_VERSION}."
3535
fi
@@ -53,7 +53,7 @@ if [[ "$WORKFLOW" == "staging" ]]; then
5353
BUILD_SNAPSHOT_ARG="-Dbuild.snapshot=false"
5454
fi
5555

56-
if [[ -n "$VERSION_QUALIFER" ]]; then
56+
if [[ -n "${VERSION_QUALIFER:-}" ]]; then
5757
VERSION_QUALIFIER_ARG="-Dbuild.version_qualifier=$VERSION_QUALIFER"
5858
fi
5959

@@ -72,7 +72,7 @@ echo --- Building release artifacts
7272
:distribution:generateDependenciesReport
7373

7474
PATH="$PATH:${JAVA_HOME}/bin" # Required by the following script
75-
if [[ -z "$VERSION_QUALIFER" ]]; then
75+
if [[ -z "${VERSION_QUALIFER:-}" ]]; then
7676
x-pack/plugin/sql/connectors/tableau/package.sh asm qualifier="$VERSION_SUFFIX"
7777
else
7878
x-pack/plugin/sql/connectors/tableau/package.sh asm qualifier="$VERSION_QUALIFER"

0 commit comments

Comments
 (0)