prsh11 / manga-cli

📖 Script to read manga from cli
MIT License
80 stars 4 forks source link

zip and rm not working with " " #19

Closed eduardomdc closed 1 year ago

eduardomdc commented 1 year ago

manga-cli was giving out "error: could not open document" I figured it was because rm and zip was not working properly with the arguments $image_dir enclosed by " in the create_file() function

zip -q $image_dir$name-$chapterNumber.cbz $image_dir*.jpg
rm $image_dir/*.jpg

works fine for me.

lasmate commented 1 year ago

can confirm this fix works for most cases