diff --git a/bin/prepareLocally.sh b/bin/prepareLocally.sh index 2fe5d5d2afe4894e9ad0e7a6b397ce363c5b9626..441aefefc87424beddb200114f21fc36621afacc 100755 --- a/bin/prepareLocally.sh +++ b/bin/prepareLocally.sh @@ -1,5 +1,11 @@ #!/bin/bash +if ! command -v command &> /dev/null +then + echo "Composer executable could not be found" + exit +fi + COMPOSER=composer.spoons.json export COMPOSER @@ -7,9 +13,9 @@ echo -e "\n\n\nInstalling DrupalSpoons plugin" composer require --dev --no-interaction lakedrops/drupal-spoons:dev-master composer/installers:^1 echo -e "\n\n\nPreparing $COMPOSER" composer drupalspoons:prepare -echo -e "\n\n\nConfiguring project for local tests" +echo -e "\nConfiguring project for local tests" composer drupalspoons:configure -echo -e "\n\n\nInstalling dependencies" +echo -e "\nInstalling dependencies" composer update --dev --no-interaction echo -e "\n\n\n===================================================="