fix: drop which in favor of command -v

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-10-28 18:22:20 -04:00
1 parent b146483940
commit 6c709f2386
7 files changed
+7 -8

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ nginx_needs_upgrade() {
local MAJOR_VERSION MINOR_VERSION
local NEEDS_UPGRADE=true
if ! which nginx >/dev/null 2>&1; then
if ! command -v nginx &>/dev/null; then
echo $NEEDS_UPGRADE
return
fi
@@ -45,7 +45,7 @@ trigger-nginx-vhosts-dependencies() {
return
fi
if ! which nginx >/dev/null 2>&1; then
if ! command -v nginx &>/dev/null; then
nginx_install
return
fi