1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

getpassword deleted

This commit is contained in:
Ryan Kes 2019-12-30 19:26:37 +01:00
parent 951c9141fa
commit 548a92f2bd

View File

@ -1,12 +0,0 @@
#!/bin/sh
case $1 in
gmail) SERVER="imap.gmail.com"; LOGIN="alrayyes@gmail.com";;
andthensome) SERVER="imap.gmail.com"; LOGIN="ryan@andthensome.nl";;
ryankes) SERVER="imap.mailbox.org"; LOGIN="ryan@ryankes.eu";;
rss) SERVER="rss.higherlearning.eu"; LOGIN="alrayyes";;
*) echo "Unknown argument!"; exit 1;;
esac
PATTERN="machine $SERVER login $LOGIN"
gpg2 -q --for-your-eyes-only --no-tty -d ~/.authinfo.gpg | awk -v pattern="$PATTERN" '$0~pattern {print $NF}'