lucyllewy / one-script-wsl2-systemd

The one-script variant of the systemd hack for WSL2
MIT License
231 stars 38 forks source link

Fixes for PowerShell usage and SSH error in WSL #9

Closed nezorflame closed 3 years ago

nezorflame commented 3 years ago

Right now the script uses powershell.exe even if user is using pwsh.exe which can lead to multiple side-effects. This PR fixes it by taking the name of the current process. Also added a warning in the README to use the right shell.

Another fix is to make sure .ssh folder exists in home folder, otherwise user will see the following error:

2021/07/13 22:55:09 socat[406] E bind(5, {AF=1 "/home/username/.ssh/agent.sock"}, 34): No such file or directory
lucyllewy commented 3 years ago

Looks good to me :-) Thanks!