Commit bc71e072 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm fatal/warning: colorify only key word

parent 60b48241
...@@ -317,9 +317,10 @@ sudoepm() ...@@ -317,9 +317,10 @@ sudoepm()
fatal() fatal()
{ {
if [ -z "$TEXTDOMAIN" ] ; then if [ -z "$TEXTDOMAIN" ] ; then
set_color $RED set_color $RED >&2
echo "Error: $* (you can discuss the epm $EPMVERSION problem in Telegram: https://t.me/useepm)" >&2 echo -n "ERROR: " >&2
restore_color restore_color >&2
echo "$* (you can discuss the epm $EPMVERSION problem in Telegram: https://t.me/useepm)" >&2
# else # else
# echog "Error in $0: $@" >&2 # echog "Error in $0: $@" >&2
fi fi
...@@ -331,9 +332,10 @@ fatal() ...@@ -331,9 +332,10 @@ fatal()
warning() warning()
{ {
if [ -z "$TEXTDOMAIN" ] ; then if [ -z "$TEXTDOMAIN" ] ; then
set_color $YELLOW set_color $YELLOW >&2
echo "Warning: $*" >&2 echo -n "WARNING: " >&2
restore_color restore_color >&2
echo "$*" >&2
# else # else
# echog "Error in $0: $@" >&2 # echog "Error in $0: $@" >&2
fi fi
......
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