Skip to content

Commit

Permalink
fixed binary
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalkaoz committed Sep 17, 2015
1 parent e9fb9e8 commit 2b58221
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions bin/versioneye
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
#!/usr/bin/env php
<?php

if (!@include __DIR__.'/../vendor/autoload.php') {
die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
'php composer.phar install'.PHP_EOL);
$files = array(__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../autoload.php');
$loader = null;

foreach ($files as $file) {
if (file_exists($file)) {
$loader = require $file;
break;
}
}
if (!$loader) {
throw new \RuntimeException('vendor/autoload.php could not be found. Did you run `php composer.phar install`?');
}

use Rs\VersionEye\Authentication\RubyConfigFileToken;
Expand All @@ -20,4 +27,4 @@ $commandFactory = new CommandFactory(

$application = new Application('versioneye', '@git-version@');
$application->addCommands($commandFactory->generateCommands());
$application->run();
$application->run();

0 comments on commit 2b58221

Please sign in to comment.