Commit 7c95f575 authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: detect apt-get firstly

parent 46e15a7d
......@@ -220,9 +220,9 @@ case $DISTRIB_ID in
;;
*)
if is_command "rpm" && [ -s /var/lib/rpm/Name ] || [ -s /var/lib/rpm/rpmdb.sqlite ] ; then
is_command "apt-get" && [ -d /var/lib/apt ] && echo "apt-rpm" && return
is_command "zypper" && echo "zypper-rpm" && return
is_command "dnf" && echo "dnf-rpm" && return
is_command "apt-get" && echo "apt-rpm" && return
is_command "yum" && echo "yum-rpm" && return
is_command "urpmi" && echo "urpm-rpm" && return
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