> Well, on my installation I have:
>
> brew --prefix gnu-getopt
> /Users/jlaffaye/homebrew/opt/gnu-getopt
Okay, fair enough. Then we should have a fallback.
> I also want to suggest adding an environment variable to specify the location
> to not run this discovery step, so people in my situation can avoid calling
> brew each time they call pass.
This is a quite good idea. I would suggest to have a ENV variable to the path.
If the variable is not set, pass will look up the prefix in two or three
default locations, as we currently propose with the for loop. If there is no
gnu-getopt, fire up brew —prefix gnu-getopt as a fallback.
Maybe this for loop could also be avoided if the three paths are added to $PATH
when the script starts?
I will think about this and post a patch as soon as I am satisfied.
_______________________________________________
Password-Store mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/password-store