Skip to content

Commit

Permalink
Add some newlines to the printf's in run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zjrgov committed Jun 27, 2024
1 parent 11f09a7 commit 2bb17bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runner/cf-driver/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
currentDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source "${currentDir}/base.sh"

printf "[cf-driver] Using SSH to connect to %s and run steps" "$CONTAINER_ID"
printf "[cf-driver] Using SSH to connect to %s and run steps\n" "$CONTAINER_ID"

if [ -n "${RUNNER_DEBUG-}" ] && [ "$RUNNER_DEBUG" == "true" ]; then
# DANGER: There may be sensitive information in this output.
# Generated job logs should be removed after this is used.
printf "[cf-driver] RUNNER_DEBUG: About to run the following:\n======"
printf "[cf-driver] RUNNER_DEBUG: About to run the following:\n=========\n"
cat "$1"
printf "=========[cf-driver] RUNNER_DEBUG: End command display"
printf "\n=========\n[cf-driver] RUNNER_DEBUG: End command display\n"
fi

if ! cf ssh "$CONTAINER_ID" < "${1}"; then
Expand All @@ -21,4 +21,4 @@ if ! cf ssh "$CONTAINER_ID" < "${1}"; then
exit "$BUILD_FAILURE_EXIT_CODE"
fi

printf "[cf-driver] Completed SSH session with %s to run steps" "$CONTAINER_ID"
printf "[cf-driver] Completed SSH session with %s to run steps\n" "$CONTAINER_ID"

0 comments on commit 2bb17bc

Please sign in to comment.