Skip to content

Instantly share code, notes, and snippets.

@jkribeiro
Last active November 1, 2018 00:10
Show Gist options
  • Save jkribeiro/f9826bfa38ad92aa1ed167b15161c553 to your computer and use it in GitHub Desktop.
Save jkribeiro/f9826bfa38ad92aa1ed167b15161c553 to your computer and use it in GitHub Desktop.
#!/bin/bash
SUBS="
<subA>
<subB>
"
ENVS="
prod
"
# Iterate repos.
for sub in `echo ${SUBS}`; do
# Iterate envs.
for env in `echo ${ENVS}`; do
drush @"$sub"."$env" cr
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment