diff options
author | Luke <luke@lukesmith.xyz> | 2018-02-10 16:00:14 -0700 |
---|---|---|
committer | Luke <luke@lukesmith.xyz> | 2018-02-10 16:00:14 -0700 |
commit | badf508538e060289189e497cd20d4f1000533f3 (patch) | |
tree | da76291de29bcf23bb31fa2d56351df9937818cb /removeaccount.sh | |
parent | cf773b4db50101dbdb568a171f270d470f4e5e62 (diff) |
mutt configuration now automatic
Diffstat (limited to 'removeaccount.sh')
-rwxr-xr-x | removeaccount.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/removeaccount.sh b/removeaccount.sh index e1be72e..d4cd0a0 100755 --- a/removeaccount.sh +++ b/removeaccount.sh @@ -17,6 +17,7 @@ removeAccount() { sed -ie " " ~/.offlineimaprc rm "$muttdir"accounts/$1.muttrc rm "$muttdir"credentials/$1.gpg + rm -rf "$muttdir"accounts/$1 echo $1 deleted. ;} #/tmp/numbered @@ -31,11 +32,8 @@ clear if [ -z "$choices" ]; then - echo no selection + clear else todelet=$(IFS="|"; keys="${choices[*]}"; keys="${keys//|/\\|}"; grep -w "${keys}" /tmp/numbered | awk '{print $2}') for i in $todelet; do removeAccount $i; done fi - - - |