aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-04-11 14:43:39 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-04-11 14:43:39 -0300
commit43e0f2c8d73b817e0fc15e9ef415fedd2e15f9a5 (patch)
treeecaddab60049cc4a44200f5842600ccccb6056ff
parentbb553306186854a9809f9a203b22e64db5d070ac (diff)
downloadprofile-43e0f2c8d73b817e0fc15e9ef415fedd2e15f9a5.tar.gz
profile-43e0f2c8d73b817e0fc15e9ef415fedd2e15f9a5.tar.bz2
Check if apps folder exists
-rw-r--r--profile.dot.link8
1 files changed, 5 insertions, 3 deletions
diff --git a/profile.dot.link b/profile.dot.link
index d63c373..cfb2d1a 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -19,9 +19,11 @@ fi
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/local/games
# Add all ~/apps folders into PATH
-for folder in `ls $HOME/apps`; do
- PATH=$PATH:$HOME/apps/$folder
-done
+if [ -d "$HOME/apps" ]; then
+ for folder in `ls $HOME/apps`; do
+ PATH=$PATH:$HOME/apps/$folder
+ done
+fi
# Export PATH
export PATH=$PATH