Merge pull request #32 from ahmedash95/fix-subdomain-on-default-command

Skip subdomain override if provided
This commit is contained in:
Marcel Pociot
2020-06-18 10:07:07 +02:00
committed by GitHub

View File

@@ -10,9 +10,10 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand
{
$this->input->setArgument('host', basename(getcwd()).'.'.$this->detectTld());
$subdomain = str_replace('.', '_', basename(getcwd()));
$this->input->setOption('subdomain', $subdomain);
if (! $this->hasOption('subdomain')) {
$subdomain = str_replace('.', '_', basename(getcwd()));
$this->input->setOption('subdomain', $subdomain);
}
parent::handle();
}