hvk: hvk-select: sort files alphabetically
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 21 Jul 2025 20:01:16 +0000 (16:01 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 21 Jul 2025 20:03:40 +0000 (16:03 -0400)
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
scripts/hvk-select.sh

index 82d6e27..2f121bb 100755 (executable)
@@ -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"