Skip to content

Commit 3e28e31

Browse files
committed
Update WithWSL.php
1 parent 8b75876 commit 3e28e31

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Concerns/WithWSL.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ protected function installMcpViaWsl(string $name, string $command, array $args):
1717
{
1818
// Get Windows LOCALAPPDATA path via wslvar command
1919
$localAppDataResult = Process::run('wslvar LOCALAPPDATA');
20+
if ($localAppDataResult->failed()) {
21+
dump($localAppDataResult->output());
22+
return false;
23+
}
24+
2025
$localAppData = trim($localAppDataResult->output());
2126

2227
if (empty($localAppData)) {

0 commit comments

Comments
 (0)