More portable way of checking whether a command exists.

main
Vincent Driessen 13 years ago
parent b0a42f4e25
commit 1d95a35cc6

@ -4,7 +4,7 @@ check_redis_running() {
return $?
}
if which -s rg; then
if command -v rg >/dev/null; then
safe_rg=rg
else
# Fall back for systems that don't have rg installed

Loading…
Cancel
Save