solana/ci/_

18 lines
281 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 "--- $*"
else
echo "--- $* (wd: $(pwd))"
fi
2018-12-18 14:27:37 -08:00
"$@"
}