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

If which is unavailable in the $PATH lrztar fails with a confusing error message #162

Closed
boreq opened this issue Jul 5, 2020 · 2 comments

Comments

@boreq
Copy link

boreq commented Jul 5, 2020

If which is unavailable in the $PATH then lrztar fails with a confusing error message:

lrztar: no tar in your path

This is caused by this line assuming that which will always be available. This is not the case in some cases, for example in archlinux/base Docker image and caused some confusion before I realized what is going on.

The simplest fix would most likely be to check if which can be executed just before those checks, or just trying to run those programs directly for example by executing tar --version and so on.

@pete4abw
Copy link
Contributor

pete4abw commented Aug 3, 2020

Perhaps, just use tar -I | --use-compress-program= lrzip ... This works rather well. Also you can embed any options you want or use an lrzip.conf file to use various options. lrztar has some issues with some options and as a shell file is pretty complex.

@ckolivas
Copy link
Owner

Fixed in git master.

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

3 participants