Better check for OS in miscellaneous CI scripts

This commit is contained in:
Alexey Milovidov 2019-06-30 19:30:06 +03:00
parent 9ea05b2401
commit 34e82485b2

View File

@ -7,9 +7,9 @@ WHAT=$1
[[ $EUID -ne 0 ]] && SUDO=sudo
command -v apt-get && PACKAGE_MANAGER=apt
command -v yum && PACKAGE_MANAGER=yum
command -v pkg && PACKAGE_MANAGER=pkg
command -v apt-get && PACKAGE_MANAGER=apt
case $PACKAGE_MANAGER in