mirror of
https://github.com/bitinflow/expose.git
synced 2026-11-01 13:19:09 +00:00
skip subdomain override if provided
This commit is contained in:
1 parent
baa9819daf
commit
5c77dbb882
1 file changed
+2
-1
@@ -10,9 +10,10 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand
|
|||||||
{
|
{
|
||||||
$this->input->setArgument('host', basename(getcwd()).'.'.$this->detectTld());
|
$this->input->setArgument('host', basename(getcwd()).'.'.$this->detectTld());
|
||||||
|
|
||||||
|
if (! $this->hasOption('subdomain')) {
|
||||||
$subdomain = str_replace('.', '_', basename(getcwd()));
|
$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