Browse Source

rename-counter von 1 auf 0 geändert, da es sonst problemem mit 0000.jpg gibt

erdo 1 year ago
parent
commit
f23cb628df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      all2pdf_yed

+ 1 - 1
all2pdf_yed

@@ -171,7 +171,7 @@ renameExtFiles() {
     cd $$
     ## for cbr/cbz, cover.jpg need to be at the beginning of the pdf
     rename 's/cover/0000000/g' *
-    find . -iname '*.*g' | sort --version-sort | gawk 'BEGIN{ a=1 }{ printf "mv \"%s\" %04d.jpg\n", $0, a++ }' | bash
+    find . -iname '*.*g' | sort --version-sort | gawk 'BEGIN{ a=0 }{ printf "mv \"%s\" %04d.jpg\n", $0, a++ }' | bash
     cd ..
 }