Skip to content

Commit

Permalink
Handle empty BUILDKITE_COMMAND
Browse files Browse the repository at this point in the history
  • Loading branch information
lox committed Aug 17, 2018
1 parent efa40aa commit 5cd983a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ set +e
# which is portable and much harder to shoot ourselves in the foot 馃帀

while IFS= read -rd '' token; do
run_params+=("$token")
[[ -n "$token" ]] && run_params+=("$token")
done < <(xargs printf '%s\0' <<< "$BUILDKITE_COMMAND")

echo "+++ :docker: Running command in Docker Compose service: $run_service" >&2
Expand Down

0 comments on commit 5cd983a

Please sign in to comment.