From f83c45689b21fccb917fdb4c555280eaf19ef78f Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 6 Jan 2021 21:34:00 -0500 Subject: [PATCH] temporary soydevery --- bin/mw | 6 ++++++ 1 file changed, 6 insertions(+) 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() { \