From a5a3fdb792691b71c04bfe4db748707600e4dd39 Mon Sep 17 00:00:00 2001 From: sandyx Date: Sun, 24 Nov 2024 11:02:36 -0600 Subject: [PATCH] fix --- main.go | 2 +- tncmd.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 4c42590..f5278e1 100644 --- a/main.go +++ b/main.go @@ -99,7 +99,7 @@ func main() { dir, _ := filepath.Abs(*directory) - cmd := exec.Command("./tncmd.sh", filepath.Join(dir, e.Name()), "./thumbnails") + cmd := exec.Command("./tncmd.sh", filepath.Join(dir, e.Name())) fmt.Println(cmd) diff --git a/tncmd.sh b/tncmd.sh index 9204fef..7d27c9c 100755 --- a/tncmd.sh +++ b/tncmd.sh @@ -1,2 +1,2 @@ #!/bin/bash -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] "${1%.pdf}.png"