我有一个带有以下内容的预提交钩子:
#!/bin/sh
cd web
bundle exec guard-jasmine
(它会进入网络,因为 Gemfile 和应用程序已设置在那里)
提交时,我收到许多语法错误,其中第一个是:
/Users/myusrname/.rvm/gems/ruby-2.0.0-p0/gems/guard-1.8.0/lib/guard.rb:400:in `require':
/Users/myusrname/.rvm/gems/ruby-2.0.0-p0/gems/guard-jasmine-1.16.0/lib/guard/jasmine.rb:25: odd number list for Hash (SyntaxError)
server: :auto,
/Users/myusrname/.rvm/gems/ruby-2.0.0-p0/gems/guard-jasmine-1.16.0/lib/guard/jasmine.rb:25: syntax error, unexpected ':', expecting '}'
server: :auto,
bundle exec guard-jasmine
并guard-jasmine
在输入命令行时运行良好
有什么我想念的吗?