Skip to content

Commit

Permalink
Changed install template system call to account for spaces in path (#137
Browse files Browse the repository at this point in the history
)

* Changed install template system call to account for spaces in path

`path` may contain a space. In the old code this broke the system
call.New version is in line with other library install templates (e.g.
importmap).

* Remove needless curly braces

---------

Co-authored-by: Marek Hilton <marek.hilton15@imperial.ic.ac.uk>
Co-authored-by: David Heinemeier Hansson <david@hey.com>
  • Loading branch information
3 people committed Aug 16, 2024
1 parent 48e28f8 commit 9e5f386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/stimulus_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Stimulus
module Tasks
extend self
def run_stimulus_install_template(path)
system "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{File.expand_path("../install/#{path}.rb", __dir__)}"
system RbConfig.ruby, "./bin/rails", "app:template", "LOCATION=#{File.expand_path("../install/#{path}.rb", __dir__)}"
end

def using_bun?
Expand Down

0 comments on commit 9e5f386

Please sign in to comment.