aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-04-14 15:52:04 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-04-14 15:52:04 -0300
commit3084f9c67f3b0861f6cea8c06e21aef821f83908 (patch)
tree39cd5535fe47d3aeefdc383a805dc719f3d8ec63
parent769e115a01f5bd373046275e65a41da52c05fcec (diff)
downloadwrappers-3084f9c67f3b0861f6cea8c06e21aef821f83908.tar.gz
wrappers-3084f9c67f3b0861f6cea8c06e21aef821f83908.tar.bz2
Check for other files and folders
-rwxr-xr-xmail8
-rwxr-xr-xnews6
2 files changed, 12 insertions, 2 deletions
diff --git a/mail b/mail
index 21cfc43..776f9f4 100755
--- a/mail
+++ b/mail
@@ -8,8 +8,14 @@ BASENAME="`basename $0`"
# Check configuration
if [ ! -e "$HOME/.custom/muttrc" ]; then
- mkdir -p $HOME/.custom
+ mkdir -p $HOME/.custom/mutt
touch $HOME/.custom/muttrc
+ touch $HOME/.custom/mutt/aliases
+fi
+
+# Check INBOX
+if [ ! -e "$HOME/mail/INBOX" ]; then
+ mkdir -p $HOME/mail/INBOX/{cur,new,tmp}
fi
# Dispatch
diff --git a/news b/news
index 93c7184..9bbc6fb 100755
--- a/news
+++ b/news
@@ -12,7 +12,11 @@ if [ ! -e "$HOME/.custom/newsbeuter/config" ]; then
touch $HOME/.custom/newsbeuter/config
fi
+# Check data folder
+if [ ! -e "$HOME/.local/share/newsbeuter" ]; then
+ mkdir -p $HOME/.local/share/newsbeuter
+fi
+
# Dispatch
-#newsbeuter -X
#newsbeuter
torify newsbeuter