aboutsummaryrefslogtreecommitdiff
path: root/profile.dot.link
diff options
context:
space:
mode:
Diffstat (limited to 'profile.dot.link')
-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