summaryrefslogtreecommitdiff
path: root/mutt_install.sh
diff options
context:
space:
mode:
authorLuke <luke@lukesmith.xyz>2018-02-10 09:00:03 -0700
committerLuke <luke@lukesmith.xyz>2018-02-10 09:00:03 -0700
commit7e14425ec701a4c764a677f7a774c41b61fe4793 (patch)
treedf63251d0527d02b2dcd73a903e5786f552f8642 /mutt_install.sh
parentefd3f269199de40571010fe5fbbbfc791efc58f8 (diff)
muttdir fixed
Diffstat (limited to 'mutt_install.sh')
-rwxr-xr-xmutt_install.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/mutt_install.sh b/mutt_install.sh
index 40cc4f6..c9ac842 100755
--- a/mutt_install.sh
+++ b/mutt_install.sh
@@ -62,12 +62,12 @@ replacement="
addAccount() {
-if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header ~/.offlineimaprc; fi
-cat "$muttdir"autoconf/offlineimap_profile | sed -e "$replacement" >> ~/.offlineimaprc
-# Add the mutt profile.
-cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc
-# Add on offlineimaprc sync list.
-sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =$/accounts = $title/g" ~/.offlineimaprc ;}
+ if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header ~/.offlineimaprc; fi
+ cat "$muttdir"autoconf/offlineimap_profile | sed -e "$replacement" >> ~/.offlineimaprc
+ # Add the mutt profile.
+ cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc
+ # Add on offlineimaprc sync list.
+ sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =$/accounts = $title/g" ~/.offlineimaprc ;}
addAccount