Skip to content

Commit

Permalink
Remove Drupal related add-on files from .ddev when not applicable (#27
Browse files Browse the repository at this point in the history
)
  • Loading branch information
stasadev authored Oct 31, 2024
1 parent 02ca43e commit 0147f41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions redis/scripts/setup-drupal-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ set -e

if [[ $DDEV_PROJECT_TYPE != drupal* ]] || [[ $DDEV_PROJECT_TYPE =~ ^drupal(6|7)$ ]] ;
then
for file in redis/scripts/settings.ddev.redis.php redis/scripts/setup-drupal-settings.sh; do
if grep -q "#ddev-generated" "${file}" 2>/dev/null; then
echo "Removing ${file} as not applicable"
rm -f "${file}"
fi
done
exit 0
fi

Expand Down

0 comments on commit 0147f41

Please sign in to comment.