This repository was archived by the owner on Aug 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -500,16 +500,6 @@ function check_cli_parameters() {
500500 fi
501501 err " NOTICE: Switched to a new sub-directory in the temp path: $TMP_PATH "
502502
503- if [[ ! -z ${DB_DUMP+x} ]]; then
504- check_path DB_DUMP
505- if [[ " $? " -ne " 0" ]]; then
506- echo " $DB_DUMP " > $TMP_PATH /db_dump_tmp.sql
507- DB_DUMP=" $TMP_PATH /db_dump_tmp.sql"
508- fi
509- DB_DUMP_FILENAME=$( basename $DB_DUMP )
510- DB_DUMP_EXT=${DB_DUMP_FILENAME##* .}
511- fi
512-
513503 workloads_count=0
514504 [[ ! -z ${WORKLOAD_BASIS+x} ]] && let workloads_count=$workloads_count +1
515505 [[ ! -z ${WORKLOAD_REAL+x} ]] && let workloads_count=$workloads_count +1
@@ -536,6 +526,16 @@ function check_cli_parameters() {
536526 exit 1
537527 fi
538528
529+ if [[ ! -z ${DB_DUMP+x} ]]; then
530+ check_path DB_DUMP
531+ if [[ " $? " -ne " 0" ]]; then
532+ echo " $DB_DUMP " > $TMP_PATH /db_dump_tmp.sql
533+ DB_DUMP=" $TMP_PATH /db_dump_tmp.sql"
534+ fi
535+ DB_DUMP_FILENAME=$( basename $DB_DUMP )
536+ DB_DUMP_EXT=${DB_DUMP_FILENAME##* .}
537+ fi
538+
539539 if [[ -z ${DB_NAME+x} ]]; then
540540 dbg " NOTICE: Database name is not given. Will use 'test'"
541541 DB_NAME=' test'
You can’t perform that action at this time.
0 commit comments