Skip to content

Possible error when using archives with .tar.<extension> #217

Description

@lstocchi
          If the value of `archive` is `archiv.tar.bz2`, archiveType would not be correctly set.

I would have suggested to use path.basename instead of replace:

let archiveType = path.extname(archive);
if (path.extname(path.basename(archive)) === '.tar') {
  archiveType = '.tar' + archiveType;
}

Originally posted by @schurlinga in #215 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions