From f8d247aa702972afd40e4fb16d9bbcc32cab6bf5 Mon Sep 17 00:00:00 2001 From: TW Date: Sun, 3 Nov 2013 11:25:11 +0000 Subject: [PATCH] fixed a bug which deleted the resulting file after conversion when it had the same extension as original --- napi.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/napi.sh b/napi.sh index c934784..39e43ed 100755 --- a/napi.sh +++ b/napi.sh @@ -43,7 +43,7 @@ g_MandatoryTools=( 'md5sum' 'tr' 'printf' # if pynapi is not acceptable then use "other" - in this case p7zip is # required to finish processing -g_Revison="v1.1.6" +g_Revison="v1.1.8" g_Version="pynapi" #g_Version="other" @@ -364,7 +364,7 @@ function download_subs subotage.sh -i "$output" -of $g_Format -o "$outputSubs" $subotage_c2 # remove the old format if conversion was successful - [[ $? -eq 0 ]] && rm -f "$output" + [[ $? -eq 0 ]] && [[ "$output" != "$outputSubs" ]] && rm -f "$output" echo " -- ==================" fi else