Skip to content

Commit 123b2a4

Browse files
authored
Merge pull request #24 from filamentphp/fix/username-guess
fix username guess
2 parents fd68c6c + 6572b25 commit 123b2a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
$gitEmail = run('git config user.email');
88
$authorEmail = ask('Author email', $gitEmail);
99

10-
$usernameGuess = explode(':', run('git config remote.origin.url'))[1];
11-
if ($usernameGuess) {
10+
$usernameGuess = explode(':', run('git config remote.origin.url'))[1] ?? '';
11+
if ($usernameGuess !== '') {
1212
$usernameGuess = dirname($usernameGuess);
1313
$usernameGuess = basename($usernameGuess);
1414
}

0 commit comments

Comments
 (0)