Skip to content

Commit

Permalink
Got the Buildkite command hook logic flipped.
Browse files Browse the repository at this point in the history
  • Loading branch information
1Copenut committed Nov 13, 2023
1 parent 1c1ad93 commit d97a7a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .buildkite/hooks/post-command
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [[ "$BUILDKITE_AGENT_NAME" =~ ^bk-agent ]]; then
echo "Pipeline triggered from outside EUI. Skipping post_command."
else
source .buildkite/scripts/lifecycle/post_command.sh
else
echo "Pipeline triggered from outside expected EUI workflow. Skipping post_command."
fi
4 changes: 2 additions & 2 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [[ "$BUILDKITE_AGENT_NAME" =~ ^bk-agent ]]; then
echo "Pipeline triggered from outside EUI. Skipping pre_command."
else
source .buildkite/scripts/lifecycle/pre_command.sh
else
echo "Pipeline triggered from outside expected EUI workflow. Skipping pre_command."
fi

0 comments on commit d97a7a2

Please sign in to comment.