Author: Adam <git@apiote.xyz>
sort toys
get.sh | 2 +-
diff --git a/get.sh b/get.sh index e49e02c02764d9616a82cd851b1c1e503b146944..d2e12a9fb5f773bdbcce1d0369a42a98492ab320 100644 --- a/get.sh +++ b/get.sh @@ -1,7 +1,7 @@ #!/bin/sh list_toys() { - toys=$(find toys/ -mindepth 1 -maxdepth 1 -type d | sed 's|toys/||') + toys=$(find toys/ -mindepth 1 -maxdepth 1 -type d | sed 's|toys/||' | sort) echo "$toys" | while read -r toy do status=$(show_item "$toy" 'latest' | head -n1 | cut -d ';' -f1)