From 978a9c7df4b40aaa5a0996f2d3578d5a693b20a3 Mon Sep 17 00:00:00 2001 From: David Noland Date: Thu, 24 Mar 2011 12:26:37 -0700 Subject: [PATCH] Show more meaningful error message if db deployment fails when "mysql" is missing from PATH. --- setup/db/deploy-db-dev.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/db/deploy-db-dev.sh b/setup/db/deploy-db-dev.sh index fb1b53b6de5..864ff9f846e 100755 --- a/setup/db/deploy-db-dev.sh +++ b/setup/db/deploy-db-dev.sh @@ -51,6 +51,9 @@ if [ $mysqlout -eq 1 ]; then printf "Error: Cannot execute create-database.sql\n" exit 10 fi +elif [ $mysqlout -eq 127 ]; then + printf "Error: Cannot execute create-database.sql - mysql command not found.\n" + exit 11 elif [ $mysqlout -ne 0 ]; then printf "Error: Cannot execute create-database.sql\n" exit 11