[pass] [PATCH] Team pass: enable multiple keys and per directory
Jason A. Donenfeld
Jason at zx2c4.com
Thu Mar 20 00:06:33 CET 2014
On Wed, Mar 19, 2014 at 4:36 PM, Josh Cartwright <joshc at eso.teric.us> wrote:
>
>
> I don't think any of this realpath nonsense is necessary at all. Instead
> of
> tacking '/..' to the end of current, just use a parameter expansion to
> strip
> off '/*'. Since you know that 'current' will always have "$PREFIX" as a
> prefix, you're guaranteed to terminate.
Good thinking! I've replaced it with below and resubmitted a v2 to the list.
+ local current="$PREFIX/$1"
+ while [[ $current != "$PREFIX" && ! -f $current/.gpg-id ]]; do
+ current="${current%/*}"
+ done
+ current="$current/.gpg-id"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20140319/a5ca4c5f/attachment.html>
More information about the Password-Store
mailing list