aboutsummaryrefslogtreecommitdiff
path: root/internal/service/service.go
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2025-05-08 09:43:40 -0500
committerSlack Coder <slackcoder@server.ky>2025-05-19 16:00:29 -0500
commit7071186e1efe2b96cfb4555aa38570bfd5ba1049 (patch)
treed62341df1002aa0465dde1f0a3114c52bdea1920 /internal/service/service.go
parentbde75151c4852029766ccafd091493f5686e4ab9 (diff)
downloadmirror-7071186e1efe2b96cfb4555aa38570bfd5ba1049.tar.xz
Fix verification
Use the Mirror's verification parameter instead of the global parameter and remove it. This fixes an issue where mirrors were not being verified.
Diffstat (limited to 'internal/service/service.go')
-rw-r--r--internal/service/service.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/service/service.go b/internal/service/service.go
index 12f79dc..7d0ab83 100644
--- a/internal/service/service.go
+++ b/internal/service/service.go
@@ -189,8 +189,8 @@ func (s *Service) Mirror(arg *Mirror) error {
return fmt.Errorf("could not clone from '%s': %w", arg.From, err)
}
- if s.cfg.Verify != "" {
- err = runBash(downloadPath, s.cfg.Verify)
+ if arg.Verify != "" {
+ err = runBash(downloadPath, arg.Verify)
if err != nil {
return fmt.Errorf("verification failed: %w", err)
}