Skip to content

Commit de3cb45

Browse files
committed
Local scoping of variable
1 parent d8b7c3d commit de3cb45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commands/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ if [[ "${BUILDKITE_PLUGIN_DOCKER_ALWAYS_PULL:-false}" =~ ^(true|on|1)$ ]] ; then
350350
echo "--- :docker: Pulling ${image}"
351351
if ! retry "${BUILDKITE_PLUGIN_DOCKER_PULL_RETRIES:-3}" \
352352
docker pull "${image}" ; then
353-
retry_exit_status="$?"
353+
local retry_exit_status="$?"
354354
echo "!!! :docker: Pull failed."
355355
exit "$retry_exit_status"
356356
fi

0 commit comments

Comments
 (0)