aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-07-07 18:20:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-07-07 18:20:28 -0300
commit602beed549bb97da0cc2c4240527581fb0cf465d (patch)
treeacd4b5df6d8ed5cfe9744d9c3d78dbbf3346e798
parentf0f97270c44c59dff49d4cd54e829b97e89a931b (diff)
downloadprofile-602beed549bb97da0cc2c4240527581fb0cf465d.tar.gz
profile-602beed549bb97da0cc2c4240527581fb0cf465d.tar.bz2
Fix: simplify .profile.d and .custom/profile.d evaluation
-rw-r--r--profile.dot.link8
1 files 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