mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: properly filter ember-cli args (#13011)
Was previously rejecting all args.
This commit is contained in:
@ -36,7 +36,7 @@ if ARGV.include?("-h") || ARGV.include?("--help")
|
|||||||
exec "yarn --cwd #{yarn_dir} run ember #{command} --help"
|
exec "yarn --cwd #{yarn_dir} run ember #{command} --help"
|
||||||
end
|
end
|
||||||
|
|
||||||
args = ["--cwd", yarn_dir, "run", "ember", command] + ARGV.reject { |a| a == "--try" || "--test" }
|
args = ["--cwd", yarn_dir, "run", "ember", command] + ARGV.reject { |a| a == "--try" || a == "--test" }
|
||||||
|
|
||||||
if !args.include?("--proxy")
|
if !args.include?("--proxy")
|
||||||
args << "--proxy"
|
args << "--proxy"
|
||||||
|
Reference in New Issue
Block a user