![]() |
Bad interpreter?
:
#!/bin/shWhen I try to run it: :
notroot[0:scripts]& NexuizInstallerIt doesn't make a difference if I use /bin/sh or /bin/bash. Other shell scripts work fine. I've no clue what's wrong. |
Try using the dos2unix command on the shell script. I know I've had problems in the past with shell scripts formatted with \r\ns instead of \ns.
|
That fixed it :) Ionno why it would have DOS EOFs.
|
vi or nano both show ^M at the end of a line when you have this problem.
|
Or just have [dos] etc displayed down the botton whilst the file is open.
this in vi will fix it too :se ff=unix |
| All times are GMT -5. The time now is 11:07 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC