Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Mar 29, 2020
1 parent a5f39f0 commit 3de74ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bref
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,14 @@ $app->command('dashboard [--host=] [--port=] [--profile=] [--stage=]', function
return 1;
}

$servelessInfoOutput = $serverlessInfo->getOutput();
$serverlessInfoOutput = $serverlessInfo->getOutput();

$region = [];
preg_match('/region: ([a-z0-9-]*)/', $servelessInfoOutput, $region);
preg_match('/region: ([a-z0-9-]*)/', $serverlessInfoOutput, $region);
$region = $region[1];

$stack = [];
preg_match('/stack: ([a-zA-Z0-9-]*)/', $servelessInfoOutput, $stack);
preg_match('/stack: ([a-zA-Z0-9-]*)/', $serverlessInfoOutput, $stack);
$stack = $stack[1];

$io->writeln("Stack: <fg=yellow>$stack ($region)</>");
Expand Down

0 comments on commit 3de74ca

Please sign in to comment.