view vendor/grasmash/yaml-expander/scenarios/install @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
line wrap: on
line source
#!/bin/bash

SCENARIO=$1
ACTION=${2-install}

dir=scenarios/${SCENARIO}
if [ -z "$SCENARIO" ] ; then
  SCENARIO=default
  dir=.
fi


if [ ! -d "$dir" ] ; then
  echo "Requested scenario '${SCENARIO}' does not exist."
  exit 1
fi

echo "Switch to ${SCENARIO} scenario"

set -ex

composer -n --working-dir=$dir ${ACTION} --prefer-dist --no-scripts
composer -n --working-dir=$dir info