From 515e9718dd0f1e9ed0f5f3f421e09076cceb386c Mon Sep 17 00:00:00 2001 From: tierno Date: Thu, 4 May 2017 15:27:13 +0200 Subject: [PATCH] Avoid at init_vim_db.sh prompt user for confirmation with option --createdb Change-Id: I24334d9e3836322eae9bf8d805140f2111b40094 Signed-off-by: tierno --- database_utils/init_vim_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database_utils/init_vim_db.sh b/database_utils/init_vim_db.sh index a15627b..d4a801e 100755 --- a/database_utils/init_vim_db.sh +++ b/database_utils/init_vim_db.sh @@ -128,7 +128,7 @@ if [ -n "${CREATEDB}" ] ; then echo done # echo " deleting previous database ${DBNAME} if it exists" - mysqladmin $DEF_EXTRA_FILE_PARAM DROP "${DBNAME}" ${QUIET_MODE/q/f} && echo "Previous database deleted" + mysqladmin $DEF_EXTRA_FILE_PARAM DROP "${DBNAME}" -f && echo "Previous database deleted" echo " creating database ${DBNAME}" mysqladmin $DEF_EXTRA_FILE_PARAM create "${DBNAME}" || exit 1 fi -- 2.25.1