Commit 56984dd5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: remove duplicated words from pretty name

parent adf404f9
......@@ -802,6 +802,11 @@ get_service_manager()
echo "(unknown)"
}
filter_duplicated_words()
{
echo "$*" | xargs -n1 echo | uniq | xargs -n100 echo
}
print_pretty_name()
{
if [ -z "$PRETTY_NAME" ] ; then
......@@ -812,7 +817,7 @@ print_pretty_name()
PRETTY_NAME="$PRETTY_NAME ($DISTRIB_FULL_RELEASE)"
fi
echo "$PRETTY_NAME"
echo "$(filter_duplicated_words "$PRETTY_NAME")"
}
print_total_info()
......
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