From: Silvio Rhatto Date: Thu, 7 Jul 2022 21:20:28 +0000 (-0300) Subject: Fix: simplify .profile.d and .custom/profile.d evaluation X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=602beed549bb97da0cc2c4240527581fb0cf465d;p=rhatto%2Fdotfiles%2Fprofile.git Fix: simplify .profile.d and .custom/profile.d evaluation --- 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