]> gitweb.fluxo.info Git - rhatto/dotfiles/profile.git/commitdiff
Fix: .profile.d: search for symbolic links and with a max depth
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Jul 2022 17:55:31 +0000 (14:55 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Jul 2022 17:55:31 +0000 (14:55 -0300)
profile.dot.link

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