From 54922976576745ab55961b941465457d0a845c47 Mon Sep 17 00:00:00 2001 From: Ze'ev Schurmann Date: Tue, 19 Sep 2023 15:03:27 +0200 Subject: [PATCH] v0.02 - Fixed a bug in single mode where it was passing the command single as the filename. --- cbr2cbz.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cbr2cbz.sh b/cbr2cbz.sh index 33895d5..40c586b 100755 --- a/cbr2cbz.sh +++ b/cbr2cbz.sh @@ -2,7 +2,7 @@ function Help { echo "cbr2cbz Conversion Tool" - echo "Version 0.1" + echo "Version 0.2" echo "https://git.zaks.web.za/thisiszeev/cbr2cbz" echo echo 'Usage: cbr2cbz single "filename.cbr"' @@ -79,7 +79,7 @@ then echo "If filename has spaces or special characters please pass it within quotes." Help fi - cbr=$1 + cbr=$2 size=$(( ${#cbr} - 1 )) cbz="${cbr:0:$size}z" mkdir -p "/tmp/cbr2cbz"