18 lines
309 B
Plaintext
18 lines
309 B
Plaintext
# Buildkite log management helper
|
|
#
|
|
# See https://buildkite.com/docs/pipelines/managing-log-output
|
|
#
|
|
# |source| me
|
|
#
|
|
|
|
base_dir=$(realpath --strip "$(dirname "$0")/..")
|
|
|
|
_() {
|
|
if [[ $(pwd) = $base_dir ]]; then
|
|
echo "--- $*" > /dev/stderr
|
|
else
|
|
echo "--- $* (wd: $(pwd))" > /dev/stderr
|
|
fi
|
|
"$@"
|
|
}
|