Skip to content

Commit

Permalink
fix: Correctly extract .zip files for CUSTOM
Browse files Browse the repository at this point in the history
  • Loading branch information
0SkillAllLuck committed Dec 27, 2022
1 parent 1a1d4a1 commit c36216f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/custom/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (s *Server) Update() error {
return err
}
if strings.HasSuffix(s.filename, ".zip") {
if _, err := unzip.New().Extract(s.filename, "."); err != nil {
if _, err := unzip.New().Extract(s.filename, "/data"); err != nil {
return err
}
}
Expand Down

0 comments on commit c36216f

Please sign in to comment.