Forráskód Böngészése

Merge pull request #1540 from darkworks/darkworks-yum_check

check for yum properly.
Serghey Rodin 7 éve
szülő
commit
3e922f8cfe
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      bin/v-update-sys-vesta

+ 1 - 1
bin/v-update-sys-vesta

@@ -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