Skip to content

Commit b1358ba

Browse files
authored
Merge pull request #81 from loadsys/f/improve-phpdoc-cmd
Improve Docs-Generate Cmd
2 parents f90017b + 541891b commit b1358ba

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs-generate

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,11 @@ fi
2525

2626
DIR="$( cd -P "$( dirname "$0" )"/.. >/dev/null 2>&1 && pwd )"
2727

28-
bin/vagrant-exec "bin/phpdoc "$@""
28+
# If phpdoc bin script installed use that
29+
if [ -e "bin/phpdoc" ]; then
30+
bin/vagrant-exec "bin/phpdoc "$@""
31+
elif [ -e "bin/phpdoc.php" ]; then
32+
bin/vagrant-exec "bin/phpdoc.php "$@""
33+
else
34+
echo "!! Unable to locate the 'phpdoc' bin command. !!"
35+
fi

0 commit comments

Comments
 (0)