Use `command -v` instead of which

This commit is contained in:
cel 2020-06-30 08:19:45 -04:00
parent 76a073b3b6
commit 5571dfc947
1 changed files with 1 additions and 1 deletions

View File

@ -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 '