unveil: reorder
Anirudh Oppiliappan x@icyphox.sh
Thu, 22 Dec 2022 16:18:15 +0530
1 files changed,
4 insertions(+),
4 deletions(-)
jump to
M
main.go
→
main.go
@@ -20,16 +20,16 @@ if err != nil {
log.Fatal(err) } + if err := Unveil("/usr/local/bin/git", "rx"); err != nil { + log.Fatalf("unveil: %s", err) + } + if err := UnveilPaths([]string{ c.Dirs.Static, c.Repo.ScanPath, c.Dirs.Templates, }, "r"); err != nil { - log.Fatalf("unveil: %s", err) - } - - if err := Unveil("/usr/local/bin/git", "rx"); err != nil { log.Fatalf("unveil: %s", err) }