Commit a0812c96 authored by Vitaly Lipatov's avatar Vitaly Lipatov

hide SETCOLOR_* error on fatal due under root using

parent 94093a1b
......@@ -33,9 +33,9 @@ print_message()
# Print error message and stop the program
fatal()
{
SETCOLOR_FAILURE
SETCOLOR_FAILURE 2>/dev/null
print_message Error "$@"
SETCOLOR_NORMAL
SETCOLOR_NORMAL 2>/dev/null
if [ -n "$ETERSOFT_FATAL_REMOVE_FILES" ] && [ -z "$DEBUG" ]; then
rm -rvf $ETERSOFT_FATAL_REMOVE_FILES
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