From: Hugo Villeneuve Date: Mon, 21 Jul 2025 20:01:16 +0000 (-0400) Subject: hvk: hvk-select: sort files alphabetically X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=5a28ef4b06bbbceffd7d779ef4c789e983c53c22;p=hvutilities.git hvk: hvk-select: sort files alphabetically Signed-off-by: Hugo Villeneuve --- diff --git a/scripts/hvk-select.sh b/scripts/hvk-select.sh index 82d6e27..2f121bb 100755 --- a/scripts/hvk-select.sh +++ b/scripts/hvk-select.sh @@ -39,7 +39,7 @@ while IFS= read -r -d $'\0' file; do list="${list} ${i} ${f} ${status}" count=$((${count} + 1)) i=$((${i} + 1)) -done < <(find "${hvk_src}" -maxdepth 1 -type f ! -name '*~' -print0) +done < <(find "${hvk_src}" -maxdepth 1 -type f ! -name '*~' -print0 | sort -z) if [ ${count} -eq 0 ]; then echo "Error: no board files found"