solana/ci/_

18 lines
309 B
Plaintext
Raw Normal View History

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