From 27f2792b109163f5103abe854cbf2898b10af13a Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 8 Feb 2019 14:29:50 +0100 Subject: [PATCH] fix bug at tools/db/import-md5-list --- tools/db/import-md5-list | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)