From: Silvio Rhatto Date: Sun, 13 Jan 2013 21:38:41 +0000 (-0200) Subject: Remove lost found folder if empty X-Git-Tag: 0.1~439 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d7e35e6af4fc7c47af3cda1e003516995f2089d2;p=rhatto%2Fdotfiles.git Remove lost found folder if empty --- diff --git a/modules/mutt/muttrc b/modules/mutt/muttrc index 94a40da..94b70eb 100644 --- a/modules/mutt/muttrc +++ b/modules/mutt/muttrc @@ -436,5 +436,5 @@ macro index,pager \' "~F" "Jump to next important message" source "~/.mutt/sidebar" # http://wiki.mutt.org/?MuttFaq/Attachment -macro attach W ~/download/ -macro attach E ~/download/ +macro attach W ~/load/ +macro attach E ~/load/ diff --git a/modules/profile/profile b/modules/profile/profile index 0941d4e..0fa8e2b 100644 --- a/modules/profile/profile +++ b/modules/profile/profile @@ -30,6 +30,11 @@ source $HOME/apps/scripts/ssh-agent-eval # GPG Agent source $HOME/apps/scripts/gpg-agent-eval +# Remove lost found folder if empty +if [ -d "$HOME/lost+found" ]; then + rmdir $HOME/lost+found &> /dev/null +fi + # Custom configuration if [ -e "$HOME/.custom/profile" ]; then source $HOME/.custom/profile