From d7e35e6af4fc7c47af3cda1e003516995f2089d2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 13 Jan 2013 19:38:41 -0200 Subject: Remove lost found folder if empty --- modules/profile/profile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/profile') 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 -- cgit v1.2.3