Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL: Get drives mount point from wsl.conf #219

Merged

Conversation

kuzalekon
Copy link
Contributor

The drives mount point for WSL defined as constant at now. See issue #218.
This PR will fix it by getting drives mount point dynamically from wsl.conf file.

index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
@anaisbetts
Copy link
Contributor

Seems reasonable to me /cc @sindresorhus

- use early function exit
- use fs.readFileSync instead async version
- memoize the mount point value
@kuzalekon
Copy link
Contributor Author

@anaisbetts I improved source code of function according to your comments. Please check changes.

index.js Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants