example.sh: fix go to appropriate dir
1 files changed, 2 insertions(+), 1 deletions(-) | |||
---|---|---|---|
M | example.sh | +2 | -1 |
1@@ -34,10 +34,11 @@ done | sort -n -k 1 | cut -f 2- -d ' ' | xargs stagit-index | \
2 sed 's@<td>Last commit</td>@<td><a href="index-time.html">Last commit</a></td>@g' | \
3 sed 's@<td>Name</td>@<td><a href="index.html">Name</a></td>@g' > "${curdir}/index-time.html"
4
5+cd "${reposdir}"
6+
7 # make files per repo.
8 find . -maxdepth 1 -type d | grep -v "^.$" | sort | while read -r dir; do
9 d=$(basename "${dir}")
10-
11 printf "%s..." "${d}"
12 cd "${curdir}"
13