diff options
author | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-06-30 08:19:45 -0400 |
---|---|---|
committer | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-06-30 08:20:04 -0400 |
commit | 5571dfc9473626b244daaa90d4f02f092b9aab6e (patch) | |
tree | 4d7d8a49690bd9599c979b35ce0667668ea80765 | |
parent | 76a073b3b60e711ab781fb44f063e0a42d741e83 (diff) |
Use `command -v` instead of which
-rwxr-xr-x | gemini.filter.dpi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gemini.filter.dpi b/gemini.filter.dpi index 400b851..d66d62a 100755 --- a/gemini.filter.dpi +++ b/gemini.filter.dpi @@ -23,7 +23,7 @@ serve_404() { render_gemini() { printf "Content-type: text/html\r\n\r\n" - if which ansi2html 2>&1 >/dev/null + if command -v ansi2html >/dev/null then ansi2html else cat fi | awk ' |