commit 3baa7c81dd4aa400b37f96af9a177cbceee956e3
parent 43ae236447a3ef196a1f2bc7131ccdc3e0776963
Author: cblgh <cblgh@cblgh.org>
Date: Mon, 24 Oct 2022 10:08:32 +0200
make sure the folder exists like, for real
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/run.go b/run.go
@@ -5,7 +5,6 @@ import (
"fmt"
"net/url"
"os"
- "path/filepath"
"strings"
"cerca/server"
@@ -52,7 +51,7 @@ func main() {
complain("please pass a file containing the verification code domain allowlist")
}
- err := os.MkdirAll(filepath.Dir(dataDir), 0750)
+ err := os.MkdirAll(dataDir, 0750)
if err != nil {
complain(fmt.Sprintf("couldn't create dir '%s'", dataDir))
}