Browse Source

getmuttpass detects gpg variety

tags/v3.1
Luke Smith 5 years ago
parent
commit
6d5f14112e
No known key found for this signature in database GPG Key ID: 4C50B54A911F6252
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      credentials/getmuttpass

+ 4
- 4
credentials/getmuttpass View File

@@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
pass=$(gpg2 --decrypt --quiet ~/.config/mutt/credentials/$1.gpg)
pass=$(printf '%q' $pass)
echo set smtp_pass=\"$pass\"
echo set imap_pass=\"$pass\"
GPG="gpg"; command -v gpg >/dev/null || GPG="gpg2"
pass=$(printf '%q' "$("$GPG" --decrypt --quiet ~/.config/mutt/credentials/$1.gpg)")
echo "set smtp_pass=\"$pass\""
echo "set imap_pass=\"$pass\""

Loading…
Cancel
Save