Today I was testing a scripted installation for a customer. All day long I had weird problems with the script. But whenever I reviewed my script their seemed to be nothing wrong with it. I wrote the scripts with Notepad++ and double checked them with vi and nano. You can imagine I almost threw my laptop out the window of sheer frustration. Notepad++ has a function called “convert to unix format” and although I could not find any weird characters, returns of whatsoever… it did solve my problem. After having a closer look at Notepad++ it seems like there’s a setting to avoid this behaviour:
I should have known it isn’t a good idea to edit linux script files on a Windows host, if only VMware would release a linux version of the VirtualCenter client…