diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:49 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:29 +0100 |
commit | da353a5231ad925013d01065768864307c70651a (patch) | |
tree | 589606906e4e8966797f352ec63162cbb4016da0 /functions/echo.sh | |
parent | 068a51b175546dfeac45c747236817cb41db50d7 (diff) | |
download | vyos-live-build-da353a5231ad925013d01065768864307c70651a.tar.gz vyos-live-build-da353a5231ad925013d01065768864307c70651a.zip |
Adding live-helper 1.0~a4-1.
Diffstat (limited to 'functions/echo.sh')
-rwxr-xr-x | functions/echo.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/functions/echo.sh b/functions/echo.sh new file mode 100755 index 000000000..89d2d6b2c --- /dev/null +++ b/functions/echo.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +# echo.sh - define output methods +# Copyright (C) 2006-2007 Daniel Baumann <daniel@debian.org> +# +# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING. +# This is free software, and you are welcome to redistribute it +# under certain conditions; see COPYING for details. + +set -e + +Echo_debug () +{ + if [ "${DEBUG}" = "true" ] + then + echo "D: ${@}" + fi +} + +Echo_error () +{ + echo "E: ${@}" +} + +Echo_message () +{ + if [ "${QUIET}" != "true" ] + then + echo "P: ${@}" + fi +} + +Echo_verbose () +{ + if [ "${VERBOSE}" = "true" ] + then + echo "I: ${@}" + fi +} + +Echo_warning () +{ + echo "W: ${@}" +} |