Skip to content

Commit b0d0f2a

Browse files
author
jradtilbrook
committed
Use correct bash test condition
1 parent 8c4361d commit b0d0f2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packer/linux/conf/bin/bk-install-elastic-stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ if [[ "${BUILDKITE_AGENT_ENABLE_GIT_MIRRORS_EXPERIMENT}" == "true" ]] ; then
101101
fi
102102

103103
# If the agent token path is set, use that instead of BUILDKITE_AGENT_TOKEN
104-
if [[ -z "${BUILDKITE_AGENT_TOKEN_PATH}" ]] ; then
104+
if [[ -n "${BUILDKITE_AGENT_TOKEN_PATH}" ]] ; then
105105
BUILDKITE_AGENT_TOKEN="$(aws ssm get-parameter --name "${BUILDKITE_AGENT_TOKEN_PATH}" --with-decryption --query Parameter.Value)"
106106
fi
107107

0 commit comments

Comments
 (0)