Skip to content
Snippets Groups Projects
Unverified Commit 9b2c785f authored by weaver299's avatar weaver299 Committed by GitHub
Browse files

Merge pull request #187 from ASCWebServices/canini

new bash script
parents a9ce3ddb 41acc1aa
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
LIGHT_GREEN='\x1B[92m';
NC='\x1B[39m';
if [[ -z $1 ]]; then
echo;
echo "Usage: $0 <dev|test|live>";
echo;
echo;
exit 1;
else
ENV=$1;
fi
if [[ $ENV != 'dev' && $ENV != 'test' && $ENV != 'live' ]]; then
echo;
echo "'$ENV' is not a recognized environment. Use 'dev' or 'test' or 'live'.";
echo;echo;
exit 1;
fi
for SITE_NAME in `terminus org:site:list ohio-state-arts-and-sciences --upstream=b9baf7af-eb2c-4db5-81e6-32d3d9042572 --fields=name --format=string`; do
echo;
echo -e "${LIGHT_GREEN}==================================================================================${NC}";
printf "${LIGHT_GREEN}== %-30s ================================================${NC}\n" $SITE_NAME
echo -e "${LIGHT_GREEN}==================================================================================${NC}";
echo "SITE_NAME[$SITE_NAME] ENV[$ENV]";
echo;
terminus env:clear-cache ${SITE_NAME}.${ENV};
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment