#!/bin/sh
err() {
>&2 echo "[ERR] $1"
exit 1
}
warn() {
>&2 echo "[WRN] $1"
log() {
echo "[LOG] $1"
debug() {
[ -z "$DEBUG" ] || echo "[DBG] $1"