Skip to content

Commit

Permalink
Add Windows directory separator to homeDirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed Apr 26, 2023
1 parent 6eda6b5 commit 1ff0f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Shell/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function homeDirectory(): string

// Windows
if (! empty($_SERVER['HOMEDRIVE']) && ! empty($_SERVER['HOMEPATH'])) {
return rtrim($_SERVER['HOMEDRIVE'] . $_SERVER['HOMEPATH'], '/');
return rtrim($_SERVER['HOMEDRIVE'] . $_SERVER['HOMEPATH'], '\\/');
}

return '~';
Expand Down

0 comments on commit 1ff0f4e

Please sign in to comment.