Skip to content

Commit

Permalink
logic correction
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Sep 5, 2023
1 parent 40ac4f2 commit e991c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ontobot_change_agent/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def process_issue_via_jar(input: str, commands: list, jar_path: str, output: str
"""
cli_command = "java -jar {} apply -i {}".format(jar_path, input)
cli_commands = [
' -k "{}"'.format(command.replace('"', "'")) for command in commands if len(commands) > 1
' -k "{}"'.format(command.replace('"', "'")) for command in commands if len(commands) > 0
]
conversion = f" convert --format ofn -o {output}"
full_command = cli_command + " ".join(cli_commands) + conversion
Expand Down

0 comments on commit e991c19

Please sign in to comment.