Skip to content

Instantly share code, notes, and snippets.

View gordonpn's full-sized avatar

Gordon Pham-Nguyen gordonpn

  • Amazon Web Services
  • Montreal, Canada
  • LinkedIn in/gordonpn
View GitHub Profile
# Making sure variables are set
if [ -z "${APP_NAME}" ] || [ -z "${MODULE_NAME}" ]; then
echo "You must supply both an app and module name, example: ${0} myapp MyApp"
exit 1
fi
# Yes / No prompt
while true; do
read -p "Run docker-compose down -v (y/n)? " -r yn
case "${yn}" in