diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2016-08-26 02:37:39 +0200 |
---|---|---|
committer | Yehonal <yehonal.azeroth@gmail.com> | 2016-08-26 02:38:15 +0200 |
commit | 1f16a068e99ae9841666e4d58e6efa405d4090c1 (patch) | |
tree | 84c252201b5c62bbb4a83df4108684c7452cc9ac /bin/db_assembler/db_assembler.sh | |
parent | d3a4ddaccbc868a3a0755a58ef1539f035c2e16b (diff) |
db_assembler: removed lowercase substitution not compatible with osx
Diffstat (limited to 'bin/db_assembler/db_assembler.sh')
-rwxr-xr-x | bin/db_assembler/db_assembler.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/db_assembler/db_assembler.sh b/bin/db_assembler/db_assembler.sh index a6a657c02d..1d4e9d1110 100755 --- a/bin/db_assembler/db_assembler.sh +++ b/bin/db_assembler/db_assembler.sh @@ -1,5 +1,3 @@ -#!/bin/bash - unamestr=`uname` if [[ "$unamestr" == 'Darwin' ]]; then SRCPATH=$(greadlink -f "../../") @@ -27,19 +25,19 @@ fi function assemble() { # to lowercase - database=${1,,} + database=$1 start_sql=$2 with_base=$3 with_updates=$4 with_custom=$5 - var_base="DB_"$1"_PATHS" + var_base="DB_"$database"_PATHS" base=${!var_base} - var_updates="DB_"$1"_UPDATE_PATHS" + var_updates="DB_"$database"_UPDATE_PATHS" updates=${!var_updates} - var_custom="DB_"$1"_CUSTOM_PATHS" + var_custom="DB_"$database"_CUSTOM_PATHS" custom=${!var_custom} echo $updates |