rgranadino / mage2_vagrant

Simple Magento 2 Vagrant Box
249 stars 68 forks source link

~/bin/reinstall Throws Error - Mac Users #58

Open ComicSMURF opened 8 years ago

ComicSMURF commented 8 years ago

I stumbled upon not being able to run the "reinstall" command from the instructions in my mac and had to run a ":set fileformat=unix" in vim on the file to make it work. Looks like it's using Windows line endings.

Error retrieved was as follows: vagrant@mage2:~$ reinstall -bash: /home/vagrant/bin/reinstall: /bin/bash^M: bad interpreter: No such file or directory

angelorgoc commented 8 years ago

experiencing same problem

billabrian6 commented 8 years ago

I had the same issue. Open the 'reinstall' script with vim and type :set fileformat=unix then :wq!

That should fix the issue.

angelorgoc commented 8 years ago

Thank you @billabrian6. it is now working.