diff --git a/code/ota_flash.sh b/code/ota_flash.sh index f8c12c4a..cde96bcb 100755 --- a/code/ota_flash.sh +++ b/code/ota_flash.sh @@ -40,7 +40,7 @@ useAvahi() { echo -n "" > $board_file echo -n "$counter" > $count_file - avahi-browse -t -r -p "_arduino._tcp" 2>/dev/null | grep ^= | while read line; do + avahi-browse -t -r -p "_arduino._tcp" 2>/dev/null | grep ^= | sort -t ';' -k 3 | while read line; do (( counter++ )) echo "$counter" > $count_file diff --git a/code/ota_list.sh b/code/ota_list.sh index dbbf2b49..355d373c 100755 --- a/code/ota_list.sh +++ b/code/ota_list.sh @@ -25,7 +25,7 @@ useAvahi() { counter=0 - avahi-browse -t -r -p "_arduino._tcp" 2>/dev/null | grep ^= | while read line; do + avahi-browse -t -r -p "_arduino._tcp" 2>/dev/null | grep ^= | sort -t ';' -k 3 | while read line; do (( counter++ ))