lib/vx/builder/script/ruby.rb in vx-builder-0.1.6 vs lib/vx/builder/script/ruby.rb in vx-builder-0.1.7
- old
+ new
@@ -31,10 +31,10 @@
i << trace_sh_command("bundle install #{bundler_args}")
i << trace_sh_command("bundle clean --force")
end
if env.source.script.empty?
- script = "test -f Rakefile && #{trace_sh_command "bundle exec rake"} || true"
+ script = "if [ -f Rakefile ] then #{trace_sh_command "bundle exec rake"} ; else true ; fi"
env.script << script
end
if env.source.cached_directories != false
env.cached_directories.push "~/.rubygems"