Commit a5d0e123 authored by sehidcan's avatar sehidcan 🙃

devtools alternative command for CentOS

parent c23adbe6
......@@ -440,8 +440,8 @@ install_pkg(){
"development tools")
case ${package_manager} in
"yum")
# pkg_name='groupinstall "Development Tools"'
pkg_name='group install "Development Tools"'
# pkg_name='groupinstall "Development Tools"'
;;
*)
pkg_name="build-essential"
......@@ -463,7 +463,11 @@ install_pkg(){
;;
esac
${package_manager} ${package_manager_parameters} install ${pkg_name} &>/dev/null || ${package_manager} ${package_manager_parameters} install ${pkg_name} &>/dev/null || error "${package_manager} install ${pkg_name}"
if [ "${pkg_name}" == "development tools" ] && [ "${package_manager}" == "yum" ]; then
${package_manager} ${package_manager_parameters} ${pkg_name} &>/dev/null || ${package_manager} ${package_manager_parameters} groupinstall 'Development Tools' &>/dev/null || error "${package_manager} ${pkg_name}"
else
${package_manager} ${package_manager_parameters} install ${pkg_name} &>/dev/null || ${package_manager} ${package_manager_parameters} install ${pkg_name} &>/dev/null || error "${package_manager} install ${pkg_name}"
fi
;;
esac
......
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