projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad40433
)
example.sh: fix: sort list (regression from simplifying the script)
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 29 Apr 2016 19:52:29 +0000
(21:52 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 29 Apr 2016 19:52:29 +0000
(21:52 +0200)
example.sh
patch
|
blob
|
history
diff --git
a/example.sh
b/example.sh
index 7727f26fc8479f8af2b20e079b34b522aeb23c74..f587e8ed222bf04d4f2d9c26bc045acb13c55c07 100644
(file)
--- a/
example.sh
+++ b/
example.sh
@@
-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}"