Skip to content

Commit

Permalink
Fix PHP notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris White committed Oct 30, 2020
1 parent b527373 commit 6e3acb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ded
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ require __DIR__.'/../../autoload.php';
use jc21\CliTable;
use ChrisWhite\DotEnvDiff\Diff;

$firstEnvFile = $argv[1];
$secondEnvFile = $argv[2];
$firstEnvFile = $argv[1] ?? null;
$secondEnvFile = $argv[2] ?? null;

if ($firstEnvFile === null || $secondEnvFile === null) {
echo "\033[31mUsage: ded /path/to/first/.env /path/to/second/.env\n";
Expand Down

0 comments on commit 6e3acb3

Please sign in to comment.