From d5162e35f30c1a1f9a3463c2475f3fdf80cbe28f Mon Sep 17 00:00:00 2001 From: buckner Date: Wed, 9 Oct 2024 10:27:20 -0500 Subject: [PATCH] Make pre-exit hook compatible with mac agents --- hooks/pre-exit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/pre-exit b/hooks/pre-exit index e2fc038..41233ae 100755 --- a/hooks/pre-exit +++ b/hooks/pre-exit @@ -2,7 +2,7 @@ set -euo pipefail -if [[ -v BUILDKITE_OIDC_TMPDIR ]]; then +if [[ -n "${BUILDKITE_OIDC_TMPDIR:-}" ]]; then rm -rf "$BUILDKITE_OIDC_TMPDIR" echo "Removed credentials from $BUILDKITE_OIDC_TMPDIR"