Merge pull request #1 from darkworks/darkworks-yum_check

check for yum properly.
This commit is contained in:
darkworks 2019-06-20 22:24:22 +05:00 committed by GitHub
commit bf030103da
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