]> gitweb.fluxo.info Git - rhatto/dotfiles/profile.git/commitdiff
Fix: simplify .profile.d and .custom/profile.d evaluation
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Jul 2022 21:20:28 +0000 (18:20 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Jul 2022 21:20:28 +0000 (18:20 -0300)
profile.dot.link

index f32c787d375f115075646d649bf01854fe1a95be..91b25eb6795341deec8cdfdf70a9c43bd14b2f2d 100644 (file)
@@ -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