Permalink
Browse files

Fixed propel-gen script

  • Loading branch information...
1 parent 3849529 commit 3b15493e84b9a7e53efa5b4b59f3d013306291b0 @willdurand willdurand committed May 29, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 generator/bin/propel-gen
View
@@ -58,8 +58,13 @@ if [ -z "$PROPEL_GEN_HOME" ] ; then
fi
+# Composer install?
if [ -d "vendor/phing/phing" ] ; then
- export PHING_COMMAND="$PROPEL_GEN_HOME/bin/phing.php"
+ if [ -f "$PROPEL_GEN_HOME/bin/phing.php" ] ; then
+ export PHING_COMMAND="$PROPEL_GEN_HOME/bin/phing.php"
+ else
+ export PHING_COMMAND="$PROPEL_GEN_HOME/vendor/propel/propel1/generator/bin/phing.php"
+ fi
fi
if [ -z "$PHING_COMMAND" ] ; then

0 comments on commit 3b15493

Please sign in to comment.