Skip to content

Commit

Permalink
Quote WSL Folders with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardog committed Apr 30, 2023
1 parent f910d6a commit 3a9d706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gsudo/Helpers/CommandToRunAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private IList<string> ApplyShell(IList<string> args)
return new[] { _currentShellFileName, // wsl.exe
"-d", wsl_distro,
"-u", wsl_user,
"--cd", Environment.CurrentDirectory,
$"--cd \"{Environment.CurrentDirectory }\"",
"--" }
.Concat(args).ToArray();
}
Expand Down

0 comments on commit 3a9d706

Please sign in to comment.