From f0f97270c44c59dff49d4cd54e829b97e89a931b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 7 Jul 2022 14:55:31 -0300 Subject: Fix: .profile.d: search for symbolic links and with a max depth --- profile.dot.link | 4 ++-- 1 file 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 -- cgit v1.2.3