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

Use native Ruby function to determine home directory #425

Merged
merged 1 commit into from
Jan 10, 2017

Conversation

lasselehtinen
Copy link
Contributor

Running "vagrant up" on native Windows shell will result an error because the Windows shell does not use the ~ as an reference to the home directory. Ruby actually offers a Dir.home method that handles this issue in different platforms. It basically uses the %HOMEDRIVE% and %HOMEPATH% variables on Windows and the ~ on *nix platforms. So this would at least fix the issue with Windows users not needing to run Git bash or cygwin.

http://ruby-doc.org/core-2.0.0/Dir.html#method-c-home

@svpernova09 svpernova09 self-assigned this Jan 9, 2017
@svpernova09 svpernova09 merged commit 60756f8 into laravel:master Jan 10, 2017
@svpernova09
Copy link
Contributor

Tested on Windows 10 & MacOS

Thanks for the PR!

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.

2 participants