You are here

check-overridden.sh in Commerce Kickstart 7.2

#!/bin/bash

: ${DRUSH:=drush}
: ${DRUSH_ARGS:=}

FEATURES="commerce_kickstart_block commerce_kickstart_blog commerce_kickstart_merchandising commerce_kickstart_product commerce_kickstart_slideshow commerce_kickstart_social commerce_kickstart_user"

${DRUSH} ${DRUSH_ARGS} en -y diff

OVERRIDDEN=0
for feature in ${FEATURES}; do
  echo "Checking $feature..."
  if ${DRUSH} ${DRUSH_ARGS} features-diff ${feature} 2>&1 | grep -v 'Feature is in its default state'; then
    OVERRIDDEN=1
  fi
done

exit ${OVERRIDDEN}

File

scripts/check-overridden.sh
View source
  1. #!/bin/bash
  2. : ${DRUSH:=drush}
  3. : ${DRUSH_ARGS:=}
  4. FEATURES="commerce_kickstart_block commerce_kickstart_blog commerce_kickstart_merchandising commerce_kickstart_product commerce_kickstart_slideshow commerce_kickstart_social commerce_kickstart_user"
  5. ${DRUSH} ${DRUSH_ARGS} en -y diff
  6. OVERRIDDEN=0
  7. for feature in ${FEATURES}; do
  8. echo "Checking $feature..."
  9. if ${DRUSH} ${DRUSH_ARGS} features-diff ${feature} 2>&1 | grep -v 'Feature is in its default state'; then
  10. OVERRIDDEN=1
  11. fi
  12. done
  13. exit ${OVERRIDDEN}