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,8 +51,10 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand
->keys() ->keys()
->first(); ->first();
if ($site) {
$projectPath = $site; $projectPath = $site;
} }
}
return str_replace('.', '-', basename($projectPath)); return str_replace('.', '-', basename($projectPath));
} }