aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-07-07 14:55:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-07-07 14:55:31 -0300
commitf0f97270c44c59dff49d4cd54e829b97e89a931b (patch)
treed1637924c3b93f7dac451b3bc1d9f051aee7c045
parentc5711526d52ed6e190c590b018602a5edd7f1f31 (diff)
downloadprofile-f0f97270c44c59dff49d4cd54e829b97e89a931b.tar.gz
profile-f0f97270c44c59dff49d4cd54e829b97e89a931b.tar.bz2
Fix: .profile.d: search for symbolic links and with a max depth
-rw-r--r--profile.dot.link4
1 files changed, 2 insertions, 2 deletions
diff --git a/profile.dot.link b/profile.dot.link
index 74a301e..f32c787 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -395,7 +395,7 @@ cd $STARTUP_FOLDER
# Include other profiles
if [ -d "$HOME/.profile.d" ]; then
- scripts="`find $HOME/.profile.d -type f`"
+ scripts="`find $HOME/.profile.d -maxdepth 1 -type f,l`"
for script in $scripts; do
source $script
@@ -404,7 +404,7 @@ fi
# Include custom profiles
if [ -d "$HOME/.custom/profile.d" ]; then
- scripts="`find $HOME/.custom/profile.d -type f`"
+ scripts="`find $HOME/.custom/profile.d -maxdepth 1 -type f,l`"
for script in $scripts; do
source $script