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 +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -367,10 +367,16 @@ function checkParams() {
367
367
[ ! -z ${WORKLOAD_REAL+x} ] && let workloads_count=$workloads_count +1
368
368
[ ! -z ${WORKLOAD_CUSTOM_SQL+x} ] && let workloads_count=$workloads_count +1
369
369
370
+ # --db-prepared-snapshot or --db-dump
371
+ if ([ -z ${DB_PREPARED_SNAPSHOT+x} ] && [ -z ${DB_DUMP_PATH+x} ]); then
372
+ >&2 echo " ERROR: The object (database) is not defined."
373
+ exit 1;
374
+ fi
375
+
370
376
# --workload-real or --workload-basis-path or --workload-custom-sql
371
377
if [ " $workloads_count " -eq " 0" ]
372
378
then
373
- >&2 echo " ERROR: Workload not given ."
379
+ >&2 echo " ERROR: The workload is not defined ."
374
380
exit 1;
375
381
fi
376
382
@@ -380,12 +386,6 @@ function checkParams() {
380
386
exit 1
381
387
fi
382
388
383
- # --db-prepared-snapshot or --db-dump
384
- if ([ -z ${DB_PREPARED_SNAPSHOT+x} ] && [ -z ${DB_DUMP_PATH+x} ]); then
385
- >&2 echo " ERROR: Snapshot or dump not given."
386
- exit 1;
387
- fi
388
-
389
389
if ([ ! -z ${DB_PREPARED_SNAPSHOT+x} ] && [ ! -z ${DB_DUMP_PATH+x} ])
390
390
then
391
391
>&2 echo " ERROR: Both snapshot and dump sources are given."
You can’t perform that action at this time.
0 commit comments