Merge pull request #1540 from darkworks/darkworks-yum_check

check for yum properly.
This commit is contained in:
Serghey Rodin 2019-05-14 12:11:29 +03:00 committed by GitHub
commit 3e922f8cfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ check_args '1' "$#" 'PACKAGE'
# Action #
#----------------------------------------------------------#
if [ -d "/etc/sysconfig" ]; then
if [ -n "$(command -v yum)" ]; then
# Clean yum chache
yum -q clean all