]> git.plutz.net Git - shellwiki/blobdiff - handlers/90_brackets.sh
speed improvement: save fork when checking mdfile existence
[shellwiki] / handlers / 90_brackets.sh
index 1f11cf4448697124a7b4fdfe08a2f64cc42aecae..ce49b0e9a36fd9456d74d99950da40609f5d5a1d 100755 (executable)
@@ -11,7 +11,7 @@ case "${PATH_INFO}" in
     REDIRECT "${_BASE}${PATH_INFO%\[view\]}"
     ;;
   */)
-    if [ ! "$(mdfile "${PATH_INFO}")" ]; then
+    if ! mdfile "${PATH_INFO}" >&-; then
       theme_error 404
     elif ! acl_read "${PATH_INFO}"; then
       theme_error 403