FIX: properly filter ember-cli args (#13011)

Was previously rejecting all args.
This commit is contained in:
Jeff Wong 2021-05-10 07:39:54 -10:00 committed by GitHub
parent ee880c4c89
commit 7a0e5c8cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ if ARGV.include?("-h") || ARGV.include?("--help")
exec "yarn --cwd #{yarn_dir} run ember #{command} --help"
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")
args << "--proxy"