Skip to content

Commit 541891b

Browse files
committed
Improve Docs-Generate Cmd
Handles edge cases where the phpdoc bin cmd may be either the un-suffixed version of the version with the `.php` suffix Signed-off-by: Justin Yost <justin@loadsys.com>
1 parent f90017b commit 541891b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

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)