Skip to content

Commit

Permalink
Merge pull request #2 from mackoj/update
Browse files Browse the repository at this point in the history
Fix argument selection
  • Loading branch information
mackoj committed Oct 21, 2022
2 parents 9e5f40d + 7dfb18a commit df24148
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Plugins/SchemeGeneratorPlugin/SchemeGeneratorPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ struct SchemeGeneratorPlugin: CommandPlugin {
let productNames = context.package.products.map(\.name)
let packageTempFolder = URL(fileURLWithPath: context.pluginWorkDirectory.string)
let packageDirectory = URL(fileURLWithPath: context.package.directory.string)
let configurationFileName = (arguments.first != nil && arguments.first!.isEmpty == false) ? arguments.first! : "conf_scheme_generator.json"
let remainingArguments = ArgumentExtractor(arguments).remainingArguments
let configurationFileName = (remainingArguments.first != nil && remainingArguments.first!.isEmpty == false) ? remainingArguments.first! : "conf_scheme_generator.json"
let configurationFileURL = packageDirectory.appendingPathComponent(configurationFileName)

if FileManager.default.fileExists(atPath: configurationFileURL.path) == false {
Expand Down

0 comments on commit df24148

Please sign in to comment.