main
sandyx 1 year ago
parent 67db9dec22
commit 68045d9fc5

@ -79,6 +79,7 @@ func createThumbnailsDirectory() {
func main() { func main() {
port := flag.String("p", "6969", "port to serve on") port := flag.String("p", "6969", "port to serve on")
directory := flag.String("d", ".", "the directory of static file to host") directory := flag.String("d", ".", "the directory of static file to host")
converter := flag.String("t", ".", "location of conversion script")
flag.Parse() flag.Parse()
createThumbnailsDirectory() createThumbnailsDirectory()
@ -100,7 +101,7 @@ func main() {
dir, _ := filepath.Abs(*directory) dir, _ := filepath.Abs(*directory)
cmd := exec.Command("./tncmd.sh", filepath.Join(dir, name)) cmd := exec.Command(*converter, filepath.Join(dir, name))
fmt.Println(cmd) fmt.Println(cmd)

Loading…
Cancel
Save