diff options
author | Jake Teton-Landis <just.1.jake@gmail.com> | 2018-01-23 00:44:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-23 00:44:19 -0800 |
commit | 388f64a26529d8614d27a5132c7fb90e5edb6575 (patch) | |
tree | 2cc63da5fa93b1da4c3462876769d65315883db8 | |
parent | 04edd9e819c258507ad462353dc7f06b7f2576b7 (diff) | |
download | rails-388f64a26529d8614d27a5132c7fb90e5edb6575.tar.gz rails-388f64a26529d8614d27a5132c7fb90e5edb6575.tar.bz2 rails-388f64a26529d8614d27a5132c7fb90e5edb6575.zip |
yarnpkg: correct exec syntax
Previous change didn’t expand this array of arguments
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/yarn.tt | 3 |
1 files changed, 2 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..abd09a9756 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,8 @@ APP_ROOT = File.expand_path('..', __dir__) Dir.chdir(APP_ROOT) do begin - exec %w(yarnpkg) + ARGV + command = %w(yarnpkg) + ARGV + exec(*command) rescue Errno::ENOENT $stderr.puts "Yarn executable was not detected in the system." $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" |