Skip to content

Commit fbee563

Browse files
committed
Default the mirrors path to empty
1 parent d397166 commit fbee563

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ if [[ -n "${BUILDKITE_AGENT_TAGS:-}" ]] ; then
125125
fi
126126

127127
# Enable git-mirrors
128+
BUILDKITE_AGENT_GIT_MIRRORS_PATH=""
128129
if [[ "${BUILDKITE_AGENT_ENABLE_GIT_MIRRORS_EXPERIMENT}" == "true" ]] ; then
129130
if [[ -z "$BUILDKITE_AGENT_EXPERIMENTS" ]] ; then
130131
BUILDKITE_AGENT_EXPERIMENTS="git-mirrors"
@@ -138,8 +139,6 @@ if [[ "${BUILDKITE_AGENT_ENABLE_GIT_MIRRORS_EXPERIMENT}" == "true" ]] ; then
138139
else
139140
BUILDKITE_AGENT_GIT_MIRRORS_PATH="/var/lib/buildkite-agent/git-mirrors"
140141
fi
141-
else
142-
BUILDKITE_AGENT_GIT_MIRRORS_PATH=""
143142
fi
144143

145144
BUILDKITE_AGENT_TOKEN="$(aws ssm get-parameter --name "${BUILDKITE_AGENT_TOKEN_PATH}" --with-decryption --query Parameter.Value --output text)"

0 commit comments

Comments
 (0)