Browse Source

Check for php, and don't require the script to be chmod a+x


git-svn-id: http://svn.dmdirc.com/trunk@3403 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 years ago
parent
commit
9bcd3b35c6
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      DoReports.sh

+ 3
- 2
DoReports.sh View File

@@ -29,8 +29,9 @@ else
29 29
 fi
30 30
 
31 31
 # Run junit issue notifier
32
-if [ -e "$SCRIPTDIR/junit-failures.php" ]; then
33
-	$SCRIPTDIR/junit-failures.php
32
+PHP=`which php`
33
+if [ -e "$SCRIPTDIR/junit-failures.php" -a "${PHP}" != "" ]; then
34
+	$PHP -q $SCRIPTDIR/junit-failures.php
34 35
 fi
35 36
 
36 37
 # Oblong junit announcement

Loading…
Cancel
Save