skip subdomain override if provided

This commit is contained in:
Ahmed Ashraf
2020-06-17 21:33:34 +02:00
parent baa9819daf
commit 5c77dbb882

View File

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