From 53e7bc984ad419f442996e65e6607671a318e904 Mon Sep 17 00:00:00 2001 From: 6543 Date: Thu, 7 Feb 2019 22:51:17 +0100 Subject: [PATCH] group global variables --- tools/db/import-md5-list | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) 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