aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2018-01-21 23:04:21 -0500
committerGitHub <noreply@github.com>2018-01-21 23:04:21 -0500
commit5e02f3b9ff74b0efda38a217bd789a6f9d621aea (patch)
treed23fdf4d5308305d614378c5611958f31a5b9f39
parentac024cd42c2bae884e60d83ec2705d34e8c10387 (diff)
parent92e3d95099509c56b6b2f710aecfad19e97dc2c4 (diff)
downloadrails-5e02f3b9ff74b0efda38a217bd789a6f9d621aea.tar.gz
rails-5e02f3b9ff74b0efda38a217bd789a6f9d621aea.tar.bz2
rails-5e02f3b9ff74b0efda38a217bd789a6f9d621aea.zip
Merge pull request #31753 from justjake/patch-1
bin/yarn: Pass through arguments with spaces
-rw-r--r--railties/lib/rails/generators/rails/app/templates/bin/yarn.tt2
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 b4e4d95286..3d5051ec4c 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 "yarnpkg #{ARGV.join(' ')}"
+ exec %w(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"