example.sh: fix: sort list (regression from simplifying the script)
1 files changed, 2 insertions(+), 2 deletions(-) | |||
---|---|---|---|
M | example.sh | +2 | -2 |
1@@ -17,11 +17,11 @@ curdir=$(pwd)
2
3 # make index.
4 cd "${reposdir}"
5-find . -maxdepth 1 -type d | grep -v "^.$" | xargs stagit-index > "${curdir}/index.html"
6+find . -maxdepth 1 -type d | grep -v "^.$" | sort | xargs stagit-index > "${curdir}/index.html"
7
8 # make files per repo.
9 cd "${reposdir}"
10-find . -maxdepth 1 -type d | grep -v "^.$" | while read -r dir; do
11+find . -maxdepth 1 -type d | grep -v "^.$" | sort | while read -r dir; do
12 d=$(basename "${dir}")
13 printf "%s... " "${d}"
14