From 19482556dc052bb8917fb49a89dcfbea3b059b8b Mon Sep 17 00:00:00 2001 From: rawdatafeel <108900299+rawdatafeel@users.noreply.github.com> Date: Thu, 4 Apr 2024 14:32:13 -0400 Subject: [PATCH] chddeck.sh: Hotfix 7z compression (#1175) Compression tool was not deleting the original files. --- tools/chdconv/chddeck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/chdconv/chddeck.sh b/tools/chdconv/chddeck.sh index a569c002..0c6a072b 100755 --- a/tools/chdconv/chddeck.sh +++ b/tools/chdconv/chddeck.sh @@ -192,7 +192,7 @@ compress7z() { 7z a -mx=9 "${file%.*}.7z" "$file" && successful="true" if [[ $successful == "true" ]]; then echo "$file succesfully compressed to ${file%.*}.7z" - rm -f "${file%%.*}.$ext" + rm -f "$file" else echo "error converting $file" fi