aboutsummaryrefslogtreecommitdiff
path: root/modules/profile
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-13 19:38:41 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-13 19:38:41 -0200
commitd7e35e6af4fc7c47af3cda1e003516995f2089d2 (patch)
treef0ad18fa232d71cd3946e6a113fd3802f822d836 /modules/profile
parent7326aa9c24fe70308b32620bbd4ebacef1927363 (diff)
downloaddotfiles-d7e35e6af4fc7c47af3cda1e003516995f2089d2.tar.gz
dotfiles-d7e35e6af4fc7c47af3cda1e003516995f2089d2.tar.bz2
Remove lost found folder if empty
Diffstat (limited to 'modules/profile')
-rw-r--r--modules/profile/profile5
1 files changed, 5 insertions, 0 deletions
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