Update v-run-wp-cli to use standard wp-cli, making v-run-wp-cli-myvesta for myvesta version of wp-cli

This commit is contained in:
Peca 2025-07-29 17:36:36 +02:00
commit 7b3ba17a7c
2 changed files with 4 additions and 1 deletions

View file

@ -73,7 +73,7 @@ if [ -f "/usr/local/bin/wp" ]; then
WP_CLI_PACKAGES_DIR=""
fi
if [ -f "/usr/local/bin/wp-cli/php/boot-fs.php" ] && [ -d "/usr/local/bin/wp-cli/packages/vendor/wp-cli/search-replace-command" ] && [ -z "$USE_WP_CLI_BUNDLED" ] && [ "$output" == "terminal" ]; then
if [ ! -z "$USE_WP_CLI_MYVESTA" ] && [ -f "/usr/local/bin/wp-cli/php/boot-fs.php" ] && [ -d "/usr/local/bin/wp-cli/packages/vendor/wp-cli/search-replace-command" ] && [ "$output" == "terminal" ]; then
wpcli="/usr/local/bin/wp-cli/php/boot-fs.php"
COLUMNS=$(/usr/bin/env stty size 2>/dev/null | awk '{print $2}')
echo $COLUMNS > /usr/local/bin/wp-cli/COLUMNS

3
bin/v-run-wp-cli-myvesta Normal file
View file

@ -0,0 +1,3 @@
#!/bin/bash
USE_WP_CLI_MYVESTA=1 /usr/local/vesta/bin/v-run-wp-cli "$@"