X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.sh;h=0439f0d642421244c6049fa2ef9896389a5e21a5;hb=713a39f5e2b8f99d824273d49e64edb977333f69;hp=7c31003a1798a227f66ef384358084265c229925;hpb=24bbbd528bd30515e9c53d2223d0f68971b5805d;p=shellwiki diff --git a/themes/default.sh b/themes/default.sh index 7c31003..0439f0d 100755 --- a/themes/default.sh +++ b/themes/default.sh @@ -47,7 +47,7 @@ theme_page(){ cat <<-EOF - + $(theme_head) ${title} @@ -171,7 +171,7 @@ theme_error(){ 500) printf "%s\r\n" "Status: 500 Internal Server Error";; esac - if [ "$(mdfile "/[wiki]/$errno/")" ]; then + if mdfile "/[wiki]/$errno/" >&-; then theme_page "/[wiki]/$errno/" else printf "Content-Length: 0\r\n\r\n"