You are here

drush.sh in Realistic Dummy Content 8

#!/bin/bash
if [ "$#" -ne  "2" ]
  then
    echo "Please supply exactly two argument, the hash of the container, and"
    echo "the Drush command to run, \"in quotes\"."
    echo "The container's hash be found in the list below. If you can't find"
    echo "it, please create a dev container by running ./dcycle/deploy.sh"
    echo ""
    echo "Usage:"
    echo ""
    echo "For container xyz123, get a one-time login link by typing"
    echo ""
    echo "./scripts/drush.sh xyz123 'uli'"
    docker ps
else
  echo -e "[info] Running exec will cause failures on certain CI servers including CircleCI"
  docker exec $1 bash -c "cd /srv/drupal/www && drush $2"
fi

File

dcycle/drush.sh
View source
  1. #!/bin/bash
  2. if [ "$#" -ne "2" ]
  3. then
  4. echo "Please supply exactly two argument, the hash of the container, and"
  5. echo "the Drush command to run, \"in quotes\"."
  6. echo "The container's hash be found in the list below. If you can't find"
  7. echo "it, please create a dev container by running ./dcycle/deploy.sh"
  8. echo ""
  9. echo "Usage:"
  10. echo ""
  11. echo "For container xyz123, get a one-time login link by typing"
  12. echo ""
  13. echo "./scripts/drush.sh xyz123 'uli'"
  14. docker ps
  15. else
  16. echo -e "[info] Running exec will cause failures on certain CI servers including CircleCI"
  17. docker exec $1 bash -c "cd /srv/drupal/www && drush $2"
  18. fi