Skip to content

Commit

Permalink
Merge pull request #17 from buckner/buckner/mac-bash-compatibility
Browse files Browse the repository at this point in the history
Make pre-exit hook compatible with mac agents
  • Loading branch information
mcncl authored Oct 9, 2024
2 parents 850b34c + d5162e3 commit 9bbca63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/pre-exit
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9bbca63

Please sign in to comment.