Skip to content

Commit

Permalink
cmd/vinegar: fix prefix initialization dir thingy
Browse files Browse the repository at this point in the history
Signed-off-by: sewn <[email protected]>
  • Loading branch information
apprehensions authored Oct 15, 2023
1 parent 681593a commit ed4f65a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/vinegar/vinegar.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ func main() {
}

pfx := wine.New(dirs.Prefix)
// Always ensure its created, wine will complain if the root
// directory doesnt exist
if err := os.MkdirAll(dirs.Prefix, 0o755); err != nil {
log.Fatal(err)
}

c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGTERM, syscall.SIGINT)
Expand Down

0 comments on commit ed4f65a

Please sign in to comment.