mirror of
https://github.com/filamentphp/plugin-skeleton.git
synced 2025-12-06 13:38:53 +08:00
fix username guess
This commit is contained in:
@@ -7,8 +7,8 @@ $authorName = ask('Author name', $gitName);
|
||||
$gitEmail = run('git config user.email');
|
||||
$authorEmail = ask('Author email', $gitEmail);
|
||||
|
||||
$usernameGuess = explode(':', run('git config remote.origin.url'))[1];
|
||||
if ($usernameGuess) {
|
||||
$usernameGuess = explode(':', run('git config remote.origin.url'))[1] ?? '';
|
||||
if ($usernameGuess !== '') {
|
||||
$usernameGuess = dirname($usernameGuess);
|
||||
$usernameGuess = basename($usernameGuess);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user