set path only if exists

This commit is contained in:
Ahmed Ashraf committed 2020-07-03 12:53:31 +02:00
1 parent dfe889692b
commit 8db13e70af
1 file changed
+3 -1
@@ -51,7 +51,9 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand
->keys() ->keys()
->first(); ->first();
$projectPath = $site; if ($site) {
$projectPath = $site;
}
} }
return str_replace('.', '-', basename($projectPath)); return str_replace('.', '-', basename($projectPath));