gtx


Branch: develop

Author
thewhodidthis <thewhodidthis@fastmail.com>
Date
Dec. 08 '22 08:15:58
Commit
887efe4a12129c6ddeb2ad3197289b936e34f521
Parent
47afc7b24b7c09cee5f4dd73857aee23267b1e81
Changes
diff --git a/main.go b/main.go
index f6b592a..01344e4 100644
--- a/main.go
+++ b/main.go
@@ -9,7 +9,6 @@ import (
 	"fmt"
 	"html/template"
 	"io"
-	"io/ioutil"
 	"log"
 	"net/url"
 	"os"
@@ -206,7 +205,7 @@ func main() {
 		log.Fatalf("unable to locate user cache folder: %s", err)
 	}
 
-	p, err := ioutil.TempDir(ucd, "gtx-*")
+	p, err := os.MkdirTemp(ucd, "gtx-*")
 
 	if err != nil {
 		log.Fatalf("unable to locate temporary host dir: %s", err)