#! /bin/bash

source "$(dirname "${BASH_SOURCE[0]}")"/../use-env-vars.sh

    echo -e "\e[1m\e[32m
INSTALL CONTENT AND DEFAULT VALUES : Command executed will be...\e[1m\e[33m
${CURDIR}/vendor/bin/drush --root="${CURDIR}" scr scripts/drush/install_standard_content.php
\e[0m"

OLDIFS=$IFS
IFS=
echo -e "\e[1m\e[32mPress 'Enter' to continue, or any key to exit...\e[0m"
read -n 1 -s -r k
if [[ $k = "" ]] ; then
  echo -e "\e[1m\e[32m\nCommand running...\n\e[0m"
  IFS=$OLDIFS
  ${CURDIR}/vendor/bin/drush --root="${CURDIR}" scr scripts/drush/install_standard_content.php
else
  echo -e "\e[1m\e[31m\nCancelling...\e[0m"
fi
