Projet

Général

Profil

Révision 4d2d1fb9

ID4d2d1fb94b52f9a64e0a35ae23caef6769ac57b4
Parent 4b4a6a01
Enfant c8df9ab4

Ajouté par Lars Kruse il y a plus de 7 ans

Plugins xen_*: fix 'autoconf' logic and exitcode

Voir les différences:

plugins/xen/xen_memory
15 15
XM='/usr/sbin/xm'
16 16

  
17 17
if [ "$1" = "autoconf" ]; then
18
        if [ -e $XM ]; then
18
        if [ -x "$XM" ]; then
19 19
                echo yes
20
                exit 0
20
        else
21
                echo "no (xm not found)"
21 22
        fi
22
        echo "no (xm not found)"
23
        exit 1
23
        exit 0
24 24
fi
25 25

  
26 26
if [ "$1" = "config" ]; then

Formats disponibles : Unified diff