From 0460b6318862ac93b7d0f1f26a558e574dce67ec Mon Sep 17 00:00:00 2001 From: Parth Panchal <83201188+parthp2107@users.noreply.github.com> Date: Tue, 5 Jul 2022 15:28:59 +0530 Subject: [PATCH] added condition to echo only with debug flag (#5845) --- bootstrap/bootstrap_storage.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bootstrap/bootstrap_storage.sh b/bootstrap/bootstrap_storage.sh index 756cbb27988..eb19e4c4ce0 100755 --- a/bootstrap/bootstrap_storage.sh +++ b/bootstrap/bootstrap_storage.sh @@ -37,7 +37,9 @@ fi TABLE_INITIALIZER_MAIN_CLASS=org.openmetadata.catalog.util.TablesInitializer LIBS_DIR="${BOOTSTRAP_DIR}"/../libs/ -echo $LIBS_DIR +if [ ${debug} ] ; then + echo $LIBS_DIR +fi if [ -d "${LIBS_DIR}" ]; then for file in "${LIBS_DIR}"*.jar; do @@ -48,8 +50,10 @@ else fi execute() { + if [ ${debug} ] ; then echo "Using Configuration file: ${CONFIG_FILE_PATH}" - ${JAVA} -Dbootstrap.dir=$BOOTSTRAP_DIR -cp ${CLASSPATH} ${TABLE_INITIALIZER_MAIN_CLASS} -c ${CONFIG_FILE_PATH} -s ${SCRIPT_ROOT_DIR} --${1} -${debug} + fi + ${JAVA} -Dbootstrap.dir=$BOOTSTRAP_DIR -cp ${CLASSPATH} ${TABLE_INITIALIZER_MAIN_CLASS} -c ${CONFIG_FILE_PATH} -s ${SCRIPT_ROOT_DIR} --${1} -${debug} } printUsage() {