Bläddra i källkod

Added support for multiple gpg keys with pass

pull/472/head
fraserli 4 år sedan
förälder
incheckning
b46fc2dde7
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 3389F1467C767618
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      bin/mw

+ 1
- 1
bin/mw Visa fil

@@ -3,7 +3,7 @@
command -V gpg >/dev/null 2>&1 && GPG="gpg" || GPG="gpg2"
[ -z ${PASSWORD_STORE_DIR+x} ] && PASSWORD_STORE_DIR="$HOME/.password-store"
[ -r "$PASSWORD_STORE_DIR/.gpg-id" ] &&
"$GPG" --list-secret-keys "$(cat "$PASSWORD_STORE_DIR/.gpg-id")" >/dev/null 2>&1 || {
"$GPG" --list-secret-keys $(cat "$PASSWORD_STORE_DIR/.gpg-id") >/dev/null 2>&1 || {
printf "\`pass\` must be installed and initialized to encrypt passwords.\\nBe sure it is installed and run \`pass init <yourgpgemail>\`.\\nIf you don't have a GPG public private key pair, run \`%s --full-gen-key\` first.\\n" "$GPG"
exit
}


Laddar…
Avbryt
Spara