From b8b74efca2943dc25d102847d668d6c9e0936db8 Mon Sep 17 00:00:00 2001 From: dtookey Date: Fri, 8 Apr 2022 14:24:55 -0400 Subject: [PATCH] changing import script to have a bit better resolution into what's running --- src/bash/import.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bash/import.sh b/src/bash/import.sh index c786c3e..d7ac091 100644 --- a/src/bash/import.sh +++ b/src/bash/import.sh @@ -11,7 +11,8 @@ cd ${HOME}/clarity-vitals/ || exit for filename in "${SQL_DIR}"/src/sql/0-run-first/*.sql; do - echo "${filename}" + echo "Importing ${filename}" + time( mysql -u"${USER}" -p"${SECRET}" projects < "${filename}" ) done #awk 'FNR==1{print ""}1' ${SQL_DIR}/src/sql/0-run-first/*.sql | mysql -u"${USER}" -p"${SECRET}" projects