From 366dcb8eb7557662d732ce237312251d6729c57a Mon Sep 17 00:00:00 2001 From: Keith Pitt Date: Sat, 11 Apr 2015 15:27:20 +0200 Subject: [PATCH] Prefix the temporary command script with a #!/bin/bash call. --- templates/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/bootstrap.sh b/templates/bootstrap.sh index 16dff3b919..6552af63cd 100755 --- a/templates/bootstrap.sh +++ b/templates/bootstrap.sh @@ -253,7 +253,7 @@ else BUILDKITE_SCRIPT_PATH="buildkite-script-$BUILDKITE_JOB_ID" BUILDKITE_COMMAND_DISPLAY=$BUILDKITE_COMMAND - echo "$BUILDKITE_COMMAND" > $BUILDKITE_SCRIPT_PATH + echo -e "#\!/bin/bash\n$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