Skip to content

Commit

Permalink
Merge pull request #397 from svpernova09/bug/aliases-line-endings
Browse files Browse the repository at this point in the history
🚑 🏁 Fix line endings on aliases file if needed, fixes #396
  • Loading branch information
taylorotwell authored Dec 16, 2016
2 parents e476cba + 8fa4874 commit 9c91a27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Vagrant.require_version '>= 1.8.4'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if File.exist? aliasesPath then
config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases"
config.vm.provision "shell" do |s|
s.inline = "awk '{ sub(\"\r$\", \"\"); print }' /home/vagrant/.bash_aliases > /home/vagrant/.bash_aliases"
end
end

if File.exist? homesteadYamlPath then
Expand Down

0 comments on commit 9c91a27

Please sign in to comment.