Skip to content

Commit

Permalink
Merge branch 'main' into peterb/fix-path
Browse files Browse the repository at this point in the history
  • Loading branch information
pburkholder committed Jun 28, 2024
2 parents 43cf6ca + 39e8b59 commit 0d7f7fa
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" -c "source /etc/profile" < "${1}"; then
Expand All @@ -21,4 +21,4 @@ if ! cf ssh "$CONTAINER_ID" -c "source /etc/profile" < "${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 0d7f7fa

Please sign in to comment.