From b74f400c071b86972f5382d358cd6d9b359de49c Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Fri, 23 Sep 2016 10:41:28 -0700 Subject: [PATCH] support gitweb subdirs --- setup.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index be4c4d7..8eb53b4 100755 --- a/setup.sh +++ b/setup.sh @@ -158,8 +158,19 @@ _git_desc_readme() { break done < README* } + +dirs=() +for d in $gitroot/*; do + if [[ -d $d && ! -L $d ]]; then + for sub in $d/*; do + dirs+=($sub) + done + else + dirs+=($d) + fi +done gitweb_descriptions() { - for d in $gitroot/*; do + for d in ${dirs[@]}; do d=$(readlink -f $d) cd $d/.. e ${PWD##*/} -- 2.30.2