Skip to content

Commit

Permalink
Don't require CLI confirmation if /sites/ is a symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Jun 3, 2024
1 parent ba0d2a1 commit 4c04e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/AbstractDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public static function confirm(string $question): void
{
global $argv;
$path = getcwd() ?: '';
if (preg_match('~^/sites/[^/]+\.lan$~', $path) || in_array('--no-interaction', $argv, true)) {
if (str_ends_with($path, '.lan') || in_array('--no-interaction', $argv, true)) {
return;
}

Expand Down

0 comments on commit 4c04e78

Please sign in to comment.