bash, key-value pair to determine the package manager in use – CentOS
I want to detect the package manager on the system and then use that later on in my script. However, I feel this is clunky. type apt &> /dev/null && MANAGER=apt && DISTRO="Debian/Ubuntu" type yum &> /dev/null && MANAGER=yum &&…