# 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