Refactor v-run-wp-cli to simplify WP CLI installation check by removing redundant file check for boot-fs.php

This commit is contained in:
Peca 2025-08-04 11:07:07 +02:00
commit d18967e627

View file

@ -56,7 +56,7 @@ fi
wpcli=""
if [ ! -f "/usr/local/bin/wp" ] || [ ! -f "/usr/local/bin/wp-cli/php/boot-fs.php" ]; then
if [ ! -f "/usr/local/bin/wp" ]; then
echo "= WP CLI is not installed. Installing..."
/usr/local/vesta/bin/v-install-wp-cli
fi