summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-01-06 21:34:00 -0500
committerLuke Smith <luke@lukesmith.xyz>2021-01-06 21:34:00 -0500
commitf83c45689b21fccb917fdb4c555280eaf19ef78f (patch)
treee42fa69b6ef4ea5f593d3716d949ab4ea92e88f9 /bin
parent78030885b4e3153b69d408424beeb544adc093a8 (diff)
temporary soydevery
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mw6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/mw b/bin/mw
index e2d8f41..9950fae 100755
--- a/bin/mw
+++ b/bin/mw
@@ -157,6 +157,12 @@ delete() { if [ -z "${fulladdr+x}" ]; then
sed -ibu "/[0-9]-$fulladdr.muttrc/d" "$muttrc" ; rm -f "$muttrc"bu
sed -ibu "/account $fulladdr/,/^\(\s*$\|account\)/d" "$msmtprc"; rm -f "$msmtprc"bu
pass rm -f "$pass_prefix$fulladdr" >/dev/null 2>&1
+
+ # Get rid of those multiple newlines because I don't know awk well enough to do it by default lol.
+ for file in "$msmtprc" "$mbsyncrc"; do
+ tr '\n' '|' < "$file" | sed "s/||\+/||/g" | tr '|' '\n' >> "$file"bu
+ mv -f "$file"bu "$file"
+ done
}
askinfo() { \