mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Merge pull request #1540 from darkworks/darkworks-yum_check
check for yum properly.
This commit is contained in:
commit
3e922f8cfe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue