diff options
-rwxr-xr-x | dfly-update | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dfly-update b/dfly-update index 33f2cbf..c76d45e 100755 --- a/dfly-update +++ b/dfly-update @@ -9,6 +9,8 @@ set -e +DEBUG=${DEBUG:-""} + NAME="dfly-update" VERSION="0.?.?" TOOLDIR="${0%/*}" @@ -41,6 +43,14 @@ UPDATE_BRANCH= # Helper Functions # +debug() { + [ -n "${DEBUG}" ] && echo "DEBUG: $@" >&2 +} + +warn() { + echo "WARNING: $@" >&2 +} + error() { echo "ERROR: $@" >&2 } |