Commit f48e7974 authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: don't fill data if already overrided

parent 7753a62a
...@@ -926,9 +926,6 @@ print_help() ...@@ -926,9 +926,6 @@ print_help()
echo "Run without args to print all information." echo "Run without args to print all information."
} }
fill_distr_info
[ -n "$DISTRIB_ID" ] || DISTRIB_ID="Generic"
if [ -n "$*" ] ; then if [ -n "$*" ] ; then
eval lastarg=\${$#} eval lastarg=\${$#}
case "$lastarg" in case "$lastarg" in
...@@ -942,6 +939,12 @@ if [ -n "$*" ] ; then ...@@ -942,6 +939,12 @@ if [ -n "$*" ] ; then
esac esac
fi fi
# if without override
if [ -z "$DISTRIB_ID" ] ; then
fill_distr_info
[ -n "$DISTRIB_ID" ] || DISTRIB_ID="Generic"
fi
if [ -z "$1" ] ; then if [ -z "$1" ] ; then
print_total_info print_total_info
exit exit
......
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