diff options
author | Matthew Draper <matthew@trebex.net> | 2018-01-30 11:54:43 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2018-01-30 11:57:32 +1030 |
commit | 44fc16c284533cc2f7a0f97753142aef15fb2207 (patch) | |
tree | f605a9109ce4a74c1c79156dd6cebe4dd8d6c796 /railties/lib/rails | |
parent | 393d497a53973a45dda7a0d6384f9839ce17110a (diff) | |
parent | 388f64a26529d8614d27a5132c7fb90e5edb6575 (diff) | |
download | rails-44fc16c284533cc2f7a0f97753142aef15fb2207.tar.gz rails-44fc16c284533cc2f7a0f97753142aef15fb2207.tar.bz2 rails-44fc16c284533cc2f7a0f97753142aef15fb2207.zip |
Merge pull request #31769 from justjake/patch-2
yarnpkg: correct exec syntax
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/yarn.tt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/bin/yarn.tt b/railties/lib/rails/generators/rails/app/templates/bin/yarn.tt index 3d5051ec4c..90ddcc520e 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/yarn.tt +++ b/railties/lib/rails/generators/rails/app/templates/bin/yarn.tt @@ -1,7 +1,7 @@ APP_ROOT = File.expand_path('..', __dir__) Dir.chdir(APP_ROOT) do begin - exec %w(yarnpkg) + ARGV + exec "yarnpkg", *ARGV rescue Errno::ENOENT $stderr.puts "Yarn executable was not detected in the system." $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" |