Commit 2a752255 authored by Vitaly Lipatov's avatar Vitaly Lipatov

allow use fatal and warning before load_mod

parent 4e9a3ed4
......@@ -41,14 +41,22 @@ fi
# Выводит указанное сообщение об ошибке и завершает программу
fatal()
{
if [ -z "$TEXTDOMAIN" ] ; then
echo "Error: $@" >&2
else
echog "Error: $@" >&2
fi
exit 1
}
# Выводит указанное сообщение
warning()
{
if [ -z "$TEXTDOMAIN" ] ; then
echo "Warning: $@" >&2
else
echog "Warning: $@" >&2
fi
}
print_list()
......
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