Tamarin/lib/util.sh

19 lines
251 B
Bash
Raw Normal View History

#!/usr/bin/env bash
function info {
echo "[${HOSTNAME}] [INFO] $@"
}
function debug {
echo "[${HOSTNAME}] [DEBUG] $@"
}
function error {
echo "[${HOSTNAME}] [ERROR] $@" >&2
}
2015-07-04 18:45:36 +02:00
function fatal {
echo "[${HOSTNAME}] [FATAL] $@" >&2
exit 1
}