mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
run direcly $0 if rake invoked by Windows batch file.
This commit is contained in:
parent
fd3211ef67
commit
c11e78c1b6
1 changed files with 5 additions and 1 deletions
|
@ -6,7 +6,11 @@ namespace :assets do
|
|||
groups = ENV['RAILS_GROUPS'] || 'assets'
|
||||
args = [$0, task,"RAILS_ENV=#{env}","RAILS_GROUPS=#{groups}"]
|
||||
args << "--trace" if Rake.application.options.trace
|
||||
fork ? ruby(*args) : Kernel.exec(FileUtils::RUBY, *args)
|
||||
if $0 =~ /rake\.bat\Z/i
|
||||
Kernel.exec $0, *args
|
||||
else
|
||||
fork ? ruby(*args) : Kernel.exec(FileUtils::RUBY, *args)
|
||||
end
|
||||
end
|
||||
|
||||
# We are currently running with no explicit bundler group
|
||||
|
|
Loading…
Reference in a new issue