depsterr.com

The sources and build system for depsterr.com
git clone git://depsterr.com/git/depsterr.com
Log | Files | Refs | LICENSE

commit a7cdd6db0c37d9e4d42259490541a00da2fa477b
parent 1d459a3db5b7d9ff5b6b273922b8cef9c40e4773
Author: depsterr <depsterr@protonmail.com>
Date:   Wed,  1 Jul 2020 19:51:27 +0200

make_pages.sh: fixed weird handling of inner variable

Diffstat:
Mmake_pages.sh | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/make_pages.sh b/make_pages.sh @@ -59,8 +59,7 @@ done # generate sub pages find "$SRCDIR" -type d -not -name "$SRCDIR" -and -not -path "*/git*" | while read -r dir; do - inner="" - cmpdirs "$dir/.." "$SRCDIR" || inner="${inner}<li><a href=\"..\">..</a></li>" + cmpdirs "$dir/.." "$SRCDIR" && innerr="" || inner="<li><a href=\"..\">..</a></li>" for cdir in "$dir"/*/; do [ -d "$cdir" ] || continue cdir="$(basename "$cdir")/" @@ -85,8 +84,7 @@ done # generate index pages find "$DESTDIR" -type d -not -name "$SRCDIR" -and -not -path "*/git*" | while read -r dir; do [ -f "$dir/index.html" ] && continue - inner="" - cmpdirs "$dir/.." "$DESTDIR" || inner="${inner}<li><a href=\"..\">..</a></li>" + cmpdirs "$dir/.." "$DESTDIR" && inner="" || inner="<li><a href=\"..\">..</a></li>" for cdir in "$dir"/*/; do [ -d "$cdir" ] || continue cdir="$(basename "$cdir")/"