Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Fix bug where if someone composer installed within emulsify yarn woul…
Browse files Browse the repository at this point in the history
…d fail
  • Loading branch information
ccjjmartin committed Aug 18, 2017
1 parent bbf63cf commit cd90c60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/twig_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# Link contrib twig functions into the components directory

# First we need to find out whether this is inside a Drupal install or standalone Emulsify
if [ -d ../../../../vendor ]
if [ -f ../../../../vendor/drupal-pattern-lab/bem-twig-extension/bem.function.php ]
then
# Drupal install
VENDORDIR=../../../../vendor
elif [ -d vendor ]
elif [ -f vendor/drupal-pattern-lab/bem-twig-extension/bem.function.php ]
then
# Standalone
VENDORDIR=vendor
elif [ -d ../../../vendor ]
elif [ -f ../../../vendor/drupal-pattern-lab/bem-twig-extension/bem.function.php ]
then
# Composer-less Drupal
VENDORDIR=../../../vendor
Expand Down

0 comments on commit cd90c60

Please sign in to comment.