🧑‍💻 Compatible sorted 'find'

This commit is contained in:
Scott Lahteine
2025-10-01 21:09:41 -05:00
parent b32a818f37
commit 122dfa13a2

View File

@@ -158,7 +158,9 @@ shopt -s nullglob
export PAUSE=1
# Get a list of all folders that contain a file matching "Configuration*.h"
find -s "$CBASE"/config/examples -type d -name 'Configuration.h' -o -name 'Configuration_adv.h' -print0 | while IFS= read -r -d $'\0' CONF; do
find "$CBASE"/config/examples -type d -name 'Configuration.h' -o -name 'Configuration_adv.h' -print0 \
| LC_ALL=C sort -fz \
| while IFS= read -r -d $'\0' CONF; do
# Remove the file name and slash from the end of the path
CONF=${CONF%/*}