Commit e5eaff95 authored by Benedikt Böhm's avatar Benedikt Böhm

add bash debug support

parent 00ccea60
......@@ -13,6 +13,11 @@
# Copyright (c) 2010 by Benedikt Böhm
#
# enable debug mode
if [ "$DEBUG" = "yes" ]; then
set -x
fi
warn() { echo "$@" >&2; }
die() { warn "$@"; exit 1; }
has() { [[ " ${*:2} " == *" $1 "* ]]; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment