Skip to content

Commit 676694f

Browse files
committed
fix: don't ask to use vanity domain if we're using it as current domain
1 parent 41d846a commit 676694f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Command/Environment/ChangeEnvironmentDomainCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function perform(InputInterface $input, OutputInterface $output)
6363
$newDomain = $domainOption;
6464
} elseif (is_array($domainOption)) {
6565
$newDomain = (string) $output->choice(sprintf('Which mapped domain do you want to use as the new "<comment>%s</comment>" environment domain?', $environment), $domainOption);
66-
} elseif (empty($domainOption) && $output->confirm(sprintf('Do you want to use the "<comment>%s</comment>" vanity domain as the new "<comment>%s</comment>" environment domain?', $vanityDomain, $environment))) {
66+
} elseif (empty($domainOption) && $currentDomain !== $vanityDomain && $output->confirm(sprintf('Do you want to use the "<comment>%s</comment>" vanity domain as the new "<comment>%s</comment>" environment domain?', $vanityDomain, $environment))) {
6767
$newDomain = $vanityDomain;
6868
} elseif (empty($domainOption)) {
6969
$newDomain = (string) $output->ask(sprintf('What is the new domain that you want to use as the new "<comment>%s</comment>" environment domain?', $environment));

0 commit comments

Comments
 (0)