Files
cyphernode/notifier_docker/script/trace.sh
2019-05-31 21:47:10 -04:00

16 lines
193 B
Bash

#!/bin/sh
trace()
{
if [ -n "${TRACING}" ]; then
echo "$(date -Is) $$ ${1}" 1>&2
fi
}
trace_rc()
{
if [ -n "${TRACING}" ]; then
echo "$(date -Is) $$ Last return code: ${1}" 1>&2
fi
}