all repos — legit @ 2fe14eca63e9d3e907c7b725407c146a82cc129f

web frontend for git, written in go

unveil: reorder
Anirudh Oppiliappan x@icyphox.sh
Thu, 22 Dec 2022 16:18:15 +0530
commit

2fe14eca63e9d3e907c7b725407c146a82cc129f

parent

d58151dbb07a5d5dd7eaf6fc9f12566898823a46

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M main.gomain.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) }