Signed-off-by: Jessica Frazelle <princess@docker.com>
This commit is contained in:
Jessica Frazelle 2015-07-23 09:06:42 -07:00
Родитель d593130fda
Коммит 8192a9ac6c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -140,12 +140,12 @@ do_install() {
fi
if [ -z "$lsb_dist" ] && [ -r /etc/fedora-release ]; then
lsb_dist='fedora'
dist_version="$(rpm -qa \*-release | cut -d"-" -f3)"
dist_version="$(rpm -qa \*-release | cut -d"-" -f3 | head -n1)"
fi
if [ -z "$lsb_dist" ]; then
if [ -r /etc/centos-release ] || [ -r /etc/redhat-release ]; then
lsb_dist='centos'
dist_version="$(rpm -qa \*-release | cut -d"-" -f3)"
dist_version="$(rpm -qa \*-release | cut -d"-" -f3 | head -n1)"
fi
fi
if [ -z "$lsb_dist" ] && [ -r /etc/os-release ]; then