version fix

main
sandyx 1 year ago
parent 8c58331e58
commit 991977e0d1

@ -98,10 +98,9 @@ func main() {
continue
}
fmt.Println(cmd)
cmd := exec.Command("./tncmd.sh", e.Name(), *directory)
if errors.Is(cmd.Err, exec.ErrDot) {
cmd.Err = nil
}
if err := cmd.Run(); err != nil {
log.Println(err)

@ -1,2 +1,2 @@
#!/bin/bash
magick convert -thumbnail "140x200" -background white -alpha remove -crop 178x178+0+0 "$1"[0] "$2/${1%.pdf}.png"
convert -thumbnail "140x200" -background white -alpha remove -crop 178x178+0+0 "$1"[0] "$2/${1%.pdf}.png"

Loading…
Cancel
Save