On 26.05.2015 09:04, cyberxndr . wrote: > This code provides a quick way to retrieve one password from the tree. > I would like to know is whether or not it is accepted. > > 2015-05-13 13:35 GMT+03:00 cyberxndr . <[email protected] > <mailto:[email protected]>>: > > diff --git a/password-store/src/password-store.sh > b/password-store-feature/src/password-store.sh > index 47f7ffa..d5f6a59 100755 > --- a/password-store/src/password-store.sh > +++ b/password-store-feature/src/password-store.sh >
[…]
> @@ -308,6 +310,13 @@ cmd_show() {
> local path="$1"
> local passfile="$PREFIX/$path.gpg"
> check_sneaky_paths "$path"
> + if [[ exclusive -eq 1 ]]; then
> + passfile=`find "$PREFIX" -path *$1*.gpg`
> + results=`echo $passfile | tr " " "\n" | wc -l`
> + if [[ $results -ne 1 ]]; then
> + die "$results passwords founded (need 1)"
>
grammar police: that should be 'passwords found'
>
> + fi
> + fi
> if [[ -f $passfile ]]; then
> if [[ $clip -eq 0 ]]; then
> $GPG -d "${GPG_OPTS[@]}" "$passfile" ||
> exit $?
>
>
>
>
> _______________________________________________
> Password-Store mailing list
> [email protected]
> http://lists.zx2c4.com/mailman/listinfo/password-store
--
Kind regards
Justus Seifert
Operator | IT-Operations
CLOUD&HEAT
The Cloud that heats homes worldwide
Firmen- und Rechnungsanschrift:
CLOUD & HEAT Technologies GmbH
Zeitenströmung
Königsbrücker Str. 96 - Halle 15
01099 Dresden, Germany
Lieferanschrift Produktion:
CLOUD & HEAT Technologies GmbH
Zeitenströmung
Königsbrücker Str. 96 - Halle 16a
01099 Dresden, Germany
Tel: +49 351 479 3670-0
Fax: +49 351 479 3670-110
E-Mail: [email protected]
Web: https://www.cloudandheat.com
Handelsregister: Amtsgericht Dresden
Registernummer: HRB 30549
USt.-Ident.-Nr.: DE281093504
Geschäftsführer: René Marcel Schretzmann
Gemeinsam mit uns nachhaltig sein!
Nicht jede E-Mail muss gedruckt werden.
Hinweis: Diese E-Mail und / oder die Anhänge ist / sind
vertraulich und ausschließlich für den bezeichneten Adressaten
bestimmt. Die Weitergabe oder Kopieren dieser E-Mail ist
strengstens verboten. Wenn Sie diese E-Mail irrtümlich erhalten
haben, informieren Sie bitte unverzüglich den Absender und
vernichten Sie die Nachricht und alle Anhänge. Vielen Dank.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
