commit baac8f2ee4079c374147d49e1d29446bd375005e
parent 14c289ccb4589d107b8c827516ce7402e6f93733
Author: Fred Frey <f.frey6@gmail.com>
Date: Tue, 13 Mar 2018 16:24:59 -0400
escape special chars in password
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/credentials/getmuttpass b/credentials/getmuttpass
@@ -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\"