X-Git-Url: https://git.cweiske.de/php-sqllint.git/blobdiff_plain/9ab7a8507c0accdc32625e4113dcc50320242825..c50fe3de58444031d1e1ea4bff50ffde85a366be:/bin/php-sqllint diff --git a/bin/php-sqllint b/bin/php-sqllint index 8075c9e..fd766bc 100755 --- a/bin/php-sqllint +++ b/bin/php-sqllint @@ -13,12 +13,12 @@ */ namespace phpsqllint; -if (file_exists('vendor/autoload.php')) { - //dependency composer installation - include_once 'vendor/autoload.php'; -} else if (file_exists(__DIR__ . '/../vendor/autoload.php')) { +if (file_exists(__DIR__ . '/../vendor/autoload.php')) { //local git checkout include_once __DIR__ . '/../vendor/autoload.php'; +} else if (file_exists('vendor/autoload.php')) { + //dependency composer installation + include_once 'vendor/autoload.php'; } if (file_exists(__DIR__ . '/../src/phpsqllint/Autoloader.php')) {