Skip to content

Commit

Permalink
fix: ensure sorting is consistent and what is expected
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Mar 1, 2025
1 parent ebfdcb1 commit 1d44ffb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build_scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ run_buildscripts_for() {
shift
shift
# Complex "find" expression here since there might not be any overrides
find "/var/tmp/build_scripts/overrides/$WHAT" -iname "*-*.sh" -type f -maxdepth 1 -print0 | sort | while IFS= read -r -d $'\0' script; do
find "/var/tmp/build_scripts/overrides/$WHAT" -maxdepth 1 -iname "*-*.sh" -type f | \
sort --zero-terminated --sort=human-numeric | \
while IFS= read -r -d $'\0' script ; do
if [ "${CUSTOM_NAME}" != "" ] ; then
WHAT=$CUSTOM_NAME
fi
Expand Down

0 comments on commit 1d44ffb

Please sign in to comment.