mirror of
https://github.com/bitinflow/expose.git
synced 2026-11-01 05:09:11 +00:00
set path only if exists
This commit is contained in:
1 parent
dfe889692b
commit
8db13e70af
1 file changed
+3
-1
@@ -51,7 +51,9 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand
|
||||
->keys()
|
||||
->first();
|
||||
|
||||
$projectPath = $site;
|
||||
if ($site) {
|
||||
$projectPath = $site;
|
||||
}
|
||||
}
|
||||
|
||||
return str_replace('.', '-', basename($projectPath));
|
||||
|
||||
Reference in new issue
Block a user