Skip to content

Commit

Permalink
Merge pull request #12 from GSA-TTS/zjr/printf-newlines
Browse files Browse the repository at this point in the history
Add some newlines to the printf's in run.sh
  • Loading branch information
zjrgov authored Jun 27, 2024
2 parents 11f09a7 + 2bb17bc commit 39e8b59
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 39e8b59

Please sign in to comment.