【发布时间】:2012-03-27 22:16:18
【问题描述】:
我正在尝试执行 bash 脚本 (git-ftp),但我似乎做不到。这就是发生的事情:
[trusktr@rocketship ~]$ ~/scripts/git-ftp
: No such file or directory
该文件的权限为 755。
这是脚本的内容:http://pastie.org/3567556
为什么会出现此错误?我可以做些什么来解决这个问题?
【问题讨论】:
-
ls ~/scripts/git-ftp工作吗? -
如果你和我一样,看完这个问题的答案后你可能想看看How line ending conversions work with git core.autocrlf between different operating systems。