From 991977e0d1234594b67efc4a6da245943714002b Mon Sep 17 00:00:00 2001 From: sandyx Date: Sun, 24 Nov 2024 10:48:55 -0600 Subject: [PATCH] version fix --- main.go | 5 ++--- tncmd.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index b1b34ff..799f1d7 100644 --- a/main.go +++ b/main.go @@ -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) diff --git a/tncmd.sh b/tncmd.sh index 3aaead1..9204fef 100755 --- a/tncmd.sh +++ b/tncmd.sh @@ -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"