diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-04-29 21:52:29 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-04-29 21:52:29 +0200 |
commit | 0bc47da0f7b66614cdf499755ceca1dc13ff91cd (patch) | |
tree | d9fbbd6175728fa0aef8ce971bd363c3c1011fe9 | |
parent | ad4043383956fce0949def38a830d8eb61fa0565 (diff) |
example.sh: fix: sort list (regression from simplifying the script)
-rw-r--r-- | example.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,11 +17,11 @@ curdir=$(pwd) # make index. cd "${reposdir}" -find . -maxdepth 1 -type d | grep -v "^.$" | xargs stagit-index > "${curdir}/index.html" +find . -maxdepth 1 -type d | grep -v "^.$" | sort | xargs stagit-index > "${curdir}/index.html" # make files per repo. cd "${reposdir}" -find . -maxdepth 1 -type d | grep -v "^.$" | while read -r dir; do +find . -maxdepth 1 -type d | grep -v "^.$" | sort | while read -r dir; do d=$(basename "${dir}") printf "%s... " "${d}" |