added condition to echo only with debug flag (#5845)

This commit is contained in:
Parth Panchal 2022-07-05 15:28:59 +05:30 committed by GitHub
parent f862c25b40
commit 0460b63188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,9 @@ fi
TABLE_INITIALIZER_MAIN_CLASS=org.openmetadata.catalog.util.TablesInitializer TABLE_INITIALIZER_MAIN_CLASS=org.openmetadata.catalog.util.TablesInitializer
LIBS_DIR="${BOOTSTRAP_DIR}"/../libs/ LIBS_DIR="${BOOTSTRAP_DIR}"/../libs/
echo $LIBS_DIR if [ ${debug} ] ; then
echo $LIBS_DIR
fi
if [ -d "${LIBS_DIR}" ]; then if [ -d "${LIBS_DIR}" ]; then
for file in "${LIBS_DIR}"*.jar; for file in "${LIBS_DIR}"*.jar;
do do
@ -48,8 +50,10 @@ else
fi fi
execute() { execute() {
if [ ${debug} ] ; then
echo "Using Configuration file: ${CONFIG_FILE_PATH}" 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() { printUsage() {