From: Michael Prokop Date: Tue, 10 Mar 2015 14:16:34 +0000 (+0100) Subject: Define ewarn function to properly display warning messages X-Git-Tag: v0.68.1~1 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=1690a3c6e0bd6a3d6c62de1b4ea96df6859abce2 Define ewarn function to properly display warning messages Closes: #780204 (cherry picked from commit dae518d386b6e0a2bc91d48b51b7bc2bf3777f22) --- diff --git a/grml-debootstrap b/grml-debootstrap index 309e531..b841b7c 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -138,6 +138,7 @@ fi # early helper functions {{{ GOOD='' BAD='' +WARN='' NORMAL='' einfo() { @@ -152,6 +153,11 @@ einfon() { return 0 } +ewarn() { + printf " ${WARN}*${NORMAL} $*\n" + return 0 +} + eerror() { [ "${RC_ENDCOL}" != "yes" ] && [ "${LAST_E_CMD}" = "ebegin" ] && echo printf " ${BAD}*${NORMAL} $*\n" >&2