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"