chddeck.sh: Hotfix 7z compression (#1175)

Compression tool was not deleting the original files.
This commit is contained in:
rawdatafeel 2024-04-04 14:32:13 -04:00 committed by GitHub
parent 97b688709a
commit 19482556dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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