mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
Fixed db_assembler DB path variable expanding
+ code indentation
This commit is contained in:
@@ -27,22 +27,25 @@ fi
|
|||||||
|
|
||||||
function assemble() {
|
function assemble() {
|
||||||
# to lowercase
|
# to lowercase
|
||||||
database=$1
|
database=${1,,}
|
||||||
start_sql=$2
|
start_sql=$2
|
||||||
with_base=$3
|
with_base=$3
|
||||||
with_updates=$4
|
with_updates=$4
|
||||||
with_custom=$5
|
with_custom=$5
|
||||||
|
|
||||||
var_base="DB_"$database"_PATHS"
|
uc=${database^^}
|
||||||
base=${!var_base}
|
|
||||||
|
|
||||||
var_updates="DB_"$database"_UPDATE_PATHS"
|
name="DB_"$uc"_PATHS"
|
||||||
updates=${!var_updates}
|
v="$name[@]"
|
||||||
|
base=("${!v}")
|
||||||
|
|
||||||
var_custom="DB_"$database"_CUSTOM_PATHS"
|
name="DB_"$uc"_UPDATE_PATHS"
|
||||||
custom=${!var_custom}
|
v="$name[@]"
|
||||||
|
updates=("${!v}")
|
||||||
|
|
||||||
echo $updates
|
name='DB_'$uc'_CUSTOM_PATHS'
|
||||||
|
v="$name[@]"
|
||||||
|
custom=("${!v}")
|
||||||
|
|
||||||
|
|
||||||
suffix_base="_base"
|
suffix_base="_base"
|
||||||
|
|||||||
Reference in New Issue
Block a user