Skip to content

Tool breaks with single file containing dash #65

@IceflowRE

Description

@IceflowRE

https://github.com/ful1e5/clickgen/blob/ce70d07a0de82795dbedb9ebda594e79cacd4148/src/clickgen/scripts/clickgen.py#L88C17-L88C22

Using a file first-second.png will result into two files.

Something like this fixes it

- name = Path(files[0].name.split("-")[0])
+ name = Path(files[0].name)
+ if len(files) > 1:
+         name = Path(files[0].name.split("-")[0])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions