summaryrefslogtreecommitdiff
path: root/removeaccount.sh
diff options
context:
space:
mode:
Diffstat (limited to 'removeaccount.sh')
-rwxr-xr-xremoveaccount.sh6
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
-
-
-