set path only if exists

This commit is contained in:
Ahmed Ashraf
2020-07-03 12:53:31 +02:00
parent dfe889692b
commit 8db13e70af

View File

@@ -51,7 +51,9 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand
->keys()
->first();
$projectPath = $site;
if ($site) {
$projectPath = $site;
}
}
return str_replace('.', '-', basename($projectPath));