Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive module should auto detect format #20

Open
marshall-mcmullen opened this issue Dec 10, 2020 · 2 comments
Open

Archive module should auto detect format #20

marshall-mcmullen opened this issue Dec 10, 2020 · 2 comments

Comments

@marshall-mcmullen
Copy link
Collaborator

If you have a custom archive suffix (e.g. foo.upr) then you are forced to pass around --type=tgz so that ebash knows the type to list it, extract it, etc. We should enhance archive_type to look for well known types, and if none are found, fall back to using file to figure out what the type is.

@ericpe
Copy link
Collaborator

ericpe commented Dec 10, 2020

better yet,
export EBASH_ARCHIVE_SYN="abc,efg,upr:tgz;xyz:tb2"

@marshall-mcmullen
Copy link
Collaborator Author

Oh that is a nice idea @ericpe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants