]> git.armaanb.net Git - stagit.git/commitdiff
example.sh: fix: sort list (regression from simplifying the script)
authorHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 29 Apr 2016 19:52:29 +0000 (21:52 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 29 Apr 2016 19:52:29 +0000 (21:52 +0200)
example.sh

index 7727f26fc8479f8af2b20e079b34b522aeb23c74..f587e8ed222bf04d4f2d9c26bc045acb13c55c07 100644 (file)
@@ -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}"