escape special chars in password

This commit is contained in:
Fred Frey 2018-03-13 16:24:59 -04:00
parent 14c289ccb4
commit baac8f2ee4

View File

@ -1,4 +1,5 @@
#!/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\"