Skip to content

Commit 67ece8a

Browse files
only source utils.sh if exist
test existing utils.sh before sourcing it
1 parent 0770628 commit 67ece8a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

check_glusterfs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
3232

3333
PROGNAME=$(basename -- $0)
3434
PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
35-
REVISION="1.0.1"
35+
REVISION="1.0.3"
3636

37-
. $PROGPATH/utils.sh
37+
if [ -f $PROGPATH/utils.sh ]
38+
then
39+
. $PROGPATH/utils.sh
40+
fi
3841

3942
# parse command line
4043
usage () {

0 commit comments

Comments
 (0)