summaryrefslogtreecommitdiff
path: root/credentials
diff options
context:
space:
mode:
authorFred Frey <f.frey6@gmail.com>2018-03-13 16:24:59 -0400
committerFred Frey <f.frey6@gmail.com>2018-03-13 16:24:59 -0400
commitbaac8f2ee4079c374147d49e1d29446bd375005e (patch)
treecb3a2dd33c82f57e762bd7816804d30d038819a5 /credentials
parent14c289ccb4589d107b8c827516ce7402e6f93733 (diff)
escape special chars in password
Diffstat (limited to 'credentials')
-rwxr-xr-xcredentials/getmuttpass1
1 files changed, 1 insertions, 0 deletions
diff --git a/credentials/getmuttpass b/credentials/getmuttpass
index f94cb82..926a342 100755
--- 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\"