diff --git a/bin/dmg b/bin/dmg old mode 100644 new mode 100755 index 466e1fa..dee07b1 --- a/bin/dmg +++ b/bin/dmg @@ -7,7 +7,11 @@ use Opdavies\DrupalModuleGenerator\Service\TestNameConverter; use Symfony\Component\Console\Application; use Symfony\Component\Finder\Finder; -require_once __DIR__.'/../vendor/autoload.php'; +if (file_exists(__DIR__.'/../../../autoload.php')) { + require __DIR__.'/../../../autoload.php'; +} else { + require __DIR__.'/../vendor/autoload.php'; +} $app = new Application();