diff --git a/tools/db/import-md5-list b/tools/db/import-md5-list index 6698224..bfe05e3 100644 --- a/tools/db/import-md5-list +++ b/tools/db/import-md5-list @@ -17,18 +17,21 @@ { #set enviroemnt true=1 #like false=0 #like + globalconf="/etc/tt/global" } -mode=$(echo $1 | tr -d '-') -md5="$2" -moviedir="$3" -globalconf="/etc/tt/global" +{ #get options & args + mode=$(echo $1 | tr -d '-') + md5="$2" + moviedir="$3" +} -#db -dbname="tt_test" -dbhost="localhost" -dbuser="root" -dbpwd="" +{ #db + dbname="tt_test" + dbhost="localhost" + dbuser="root" + dbpwd="" +} function help() { #help menue