mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-15 14:35:55 +00:00
skip subdomain override if provided
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user