From 2894b9a5df999265846d81651bbf0b8fb7f61500 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 25 May 2022 23:03:41 +0200 Subject: [PATCH] fallback cd when printing revisions of deleted pages --- handlers/20_revision.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/20_revision.sh b/handlers/20_revision.sh index bbbc76b..08350c7 100755 --- a/handlers/20_revision.sh +++ b/handlers/20_revision.sh @@ -22,7 +22,7 @@ case "${PATH_INFO}" in theme_error 403 else ( export PATH_INFO="${page}" - cd "${_DATA}/pages${page}" + cd "${_DATA}/pages${page}" || cd "${_DATA}/pages/" git -C "${_DATA}" show "${rev}:pages${PATH_INFO}#page.md" \ | { printf '
'; md; printf '
'; } \ | theme_page - "${page##*/}" -- 2.39.2