diff --git a/tools/db/import-md5-list b/tools/db/import-md5-list index d058b0f..1216e89 100755 --- a/tools/db/import-md5-list +++ b/tools/db/import-md5-list @@ -53,10 +53,10 @@ function help() { exit 0 } -if [ "$mode" == "help" ] && help +[ "$mode" == "help" ] && help ##check & prepair args -[ ${mode:0:1} == "e" ] && touch "$md5" +[ "${mode:0:1}" == "e" ] && touch "$md5" [ -f "$md5" ] || { echo "md5 \"$md5\" do not exist"; exit 1; } # check md5 [ -z "$moviedir" ] && [ -f "$globalconf" ] && { # if (no argument) and (globalconf exist) if [ -z "$(grep "moviedir=" "$globalconf" )" ]; then # and (moviedir is NOT in globalconf)