put yarn binary in quotes to allow spaces in path to it
This commit is contained in:
parent
46337faa79
commit
f4265aebc8
@ -10,13 +10,13 @@ namespace :yarn do
|
||||
end
|
||||
|
||||
yarn_flags =
|
||||
if `#{Rails.root}/bin/yarn --version`.start_with?("1")
|
||||
if `"#{Rails.root}/bin/yarn" --version`.start_with?("1")
|
||||
"--no-progress --frozen-lockfile"
|
||||
else
|
||||
"--immutable"
|
||||
end
|
||||
|
||||
system({ "NODE_ENV" => node_env }, "#{Rails.root}/bin/yarn install #{yarn_flags}")
|
||||
system({ "NODE_ENV" => node_env }, "\"#{Rails.root}/bin/yarn\" install #{yarn_flags}")
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user