Skip to content

Commit

Permalink
fix(build.sh): delay so stderr is logged before pod exits
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Jul 14, 2016
1 parent 15eca1a commit 47ff574
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rootfs/builder/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env bash
set -eo pipefail

function sleep_before_exit {
# delay before exiting, so stdout/stderr flushes through the logging system
sleep 3
}
trap sleep_before_exit EXIT

[[ $DEIS_DEBUG ]] && set -x
unset DEIS_DEBUG

Expand All @@ -20,7 +26,6 @@ if ! [[ -z "${TAR_PATH}" ]]; then
unset TAR_PATH
fi


if [[ "$1" == "-" ]]; then
slug_file="$1"
else
Expand Down

0 comments on commit 47ff574

Please sign in to comment.