Skip to content

Commit

Permalink
Run commands via exec
Browse files Browse the repository at this point in the history
This replaces the bash process with the given command
  • Loading branch information
toolmantim committed Apr 23, 2015
1 parent 6c56fa5 commit 0fc7d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ else
BUILDKITE_SCRIPT_PATH="buildkite-script-$BUILDKITE_JOB_ID"
BUILDKITE_COMMAND_DISPLAY=$BUILDKITE_COMMAND

echo -e '#\!/bin/bash'"\n$BUILDKITE_COMMAND" > $BUILDKITE_SCRIPT_PATH
echo -e '#\!/bin/bash'"\nexec $BUILDKITE_COMMAND" > $BUILDKITE_SCRIPT_PATH
else
buildkite-error "This agent is not allowed to evaluate console commands. To allow this, re-run this agent without the \`--no-command-eval\` option, or specify a script within your repository to run instead (such as scripts/test.sh)."
fi
Expand Down

0 comments on commit 0fc7d31

Please sign in to comment.