aboutsummaryrefslogtreecommitdiff
path: root/scripts/genconfig.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/genconfig.sh')
-rwxr-xr-xscripts/genconfig.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index 4425328d..07fec2c1 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -43,9 +43,8 @@ EOF
genconfig()
{
- # I could query the directory here, but I want to control the order
- # and capitalization in the menu
- for j in toys/*/README
+ # Reverse sort puts posix first, examples last.
+ for j in $(ls toys/*/README | sort -r)
do
DIR="$(dirname "$j")"