X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.sh;h=3812f060b7dd1ce3d7ccb4c1b277712a40a0d139;hb=71152d935975fa673d7ad4398a1757228cab8b8c;hp=7c31003a1798a227f66ef384358084265c229925;hpb=68261c373aa3e692cff9988f9d021aa0fa1783b6;p=shellwiki diff --git a/themes/default.sh b/themes/default.sh index 7c31003..3812f06 100755 --- a/themes/default.sh +++ b/themes/default.sh @@ -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"