diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:51 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:29 +0100 |
commit | 8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1 (patch) | |
tree | 621dc56a00a65ab0eb1fd4e7d42ad4e45d718741 /functions/echo.sh | |
parent | 4739146fc6c4de8b16418517bb882312c475195c (diff) | |
download | vyos-live-build-8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1.tar.gz vyos-live-build-8a4a50fdb6b206fbff62fd3043ed388f25a0ffb1.zip |
Adding live-helper 1.0~a7-1.
Diffstat (limited to 'functions/echo.sh')
-rwxr-xr-x | functions/echo.sh | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/functions/echo.sh b/functions/echo.sh index 71800ade1..f28879c61 100755 --- a/functions/echo.sh +++ b/functions/echo.sh @@ -11,34 +11,44 @@ set -e Echo_debug () { + STRING="${1}" + if [ "${LH_DEBUG}" = "enabled" ] then - echo "D: ${@}" + echo "D: ${STRING}" fi } Echo_error () { - echo "E: ${@}" + STRING="${1}" + + echo "E: ${STRING}" } Echo_message () { + STRING="${1}" + if [ "${LH_QUIET}" != "enabled" ] then - echo "P: ${@}" + echo "P: ${STRING}" fi } Echo_verbose () { + STRING="${1}" + if [ "${LH_VERBOSE}" = "enabled" ] then - echo "I: ${@}" + echo "I: ${STRING}" fi } Echo_warning () { - echo "W: ${@}" + STRING="${1}" + + echo "W: ${STRING}" } |