From: Hiltjo Posthuma Date: Fri, 29 Apr 2016 19:52:29 +0000 (+0200) Subject: example.sh: fix: sort list (regression from simplifying the script) X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=0bc47da0f7b66614cdf499755ceca1dc13ff91cd;p=forks%2Fstagit.git example.sh: fix: sort list (regression from simplifying the script) --- diff --git a/example.sh b/example.sh index 7727f26..f587e8e 100644 --- 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}"