From 602beed549bb97da0cc2c4240527581fb0cf465d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 7 Jul 2022 18:20:28 -0300 Subject: Fix: simplify .profile.d and .custom/profile.d evaluation --- profile.dot.link | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/profile.dot.link b/profile.dot.link index f32c787..91b25eb 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -395,18 +395,14 @@ cd $STARTUP_FOLDER # Include other profiles if [ -d "$HOME/.profile.d" ]; then - scripts="`find $HOME/.profile.d -maxdepth 1 -type f,l`" - - for script in $scripts; do + for script in `ls $HOME/.profile.d`; do source $script done fi # Include custom profiles if [ -d "$HOME/.custom/profile.d" ]; then - scripts="`find $HOME/.custom/profile.d -maxdepth 1 -type f,l`" - - for script in $scripts; do + for script in `ls $HOME/.custom/profile.d`; do source $script done fi -- cgit v1.2.3