with correct drush and delete old comparison files

This commit is contained in:
Robert Nasarek 2025-12-09 10:49:31 +01:00
parent d5c8076e2f
commit e761ae7dc0
2 changed files with 19 additions and 4 deletions

View file

@ -37,12 +37,12 @@ echo "Step 2: Running Drupal updates..."
echo "----------------------------------------"
# Check if drush is available.
if command -v drush &> /dev/null; then
echo "Running: drush updatedb -y"
drush updatedb -y
if command -v ./vendor/bin/drush &> /dev/null; then
echo "Running: ./vendor/bin/drush updatedb -y"
./vendor/bin/drush updatedb -y
else
echo "Drush not found. Please run Drupal updates manually:"
echo " drush updatedb -y"
echo " ./vendor/bin/drush updatedb -y"
echo ""
read -p "Press Enter after you have run the updates, or Ctrl+C to cancel..."
fi