File tree 4 files changed +20
-4
lines changed
4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env php
2
2
<?php
3
3
4
- require_once __DIR__ . '/../vendor/autoload.php ' ;
4
+ if (is_file (__DIR__ . '/../vendor/autoload.php ' )) {
5
+ require_once __DIR__ . '/../vendor/autoload.php ' ;
6
+ } else {
7
+ require_once __DIR__ . '/../../../autoload.php ' ;
8
+ }
5
9
6
10
// Show usage if host and username not passed
7
11
if (!isset ($ argv [1 ], $ argv [2 ])) {
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env php
2
2
<?php
3
3
4
- require_once __DIR__ . '/../vendor/autoload.php ' ;
4
+ if (is_file (__DIR__ . '/../vendor/autoload.php ' )) {
5
+ require_once __DIR__ . '/../vendor/autoload.php ' ;
6
+ } else {
7
+ require_once __DIR__ . '/../../../autoload.php ' ;
8
+ }
5
9
6
10
echo "Philips Hue Bridge Finder " , "\n\n" ;
7
11
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env php
2
2
<?php
3
3
4
- require_once __DIR__ . '/../vendor/autoload.php ' ;
4
+ if (is_file (__DIR__ . '/../vendor/autoload.php ' )) {
5
+ require_once __DIR__ . '/../vendor/autoload.php ' ;
6
+ } else {
7
+ require_once __DIR__ . '/../../../autoload.php ' ;
8
+ }
5
9
6
10
// Show usage if host and username not passed
7
11
if (!isset ($ argv [1 ], $ argv [2 ])) {
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env php
2
2
<?php
3
3
4
- require_once __DIR__ . '/../vendor/autoload.php ' ;
4
+ if (is_file (__DIR__ . '/../vendor/autoload.php ' )) {
5
+ require_once __DIR__ . '/../vendor/autoload.php ' ;
6
+ } else {
7
+ require_once __DIR__ . '/../../../autoload.php ' ;
8
+ }
5
9
6
10
// Show usage if host and username not passed
7
11
if (!isset ($ argv [1 ], $ argv [2 ])) {
You can’t perform that action at this time.
0 commit comments