Skip to content

Commit

Permalink
fix(btrfs): correct relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
idawnlight committed Dec 1, 2023
1 parent 783b934 commit af5835d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/btrfs_snapshot_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (h *btrfsSnapshotHook) postSuccess() error {
workingDir := h.config.mirrorWorkingDir
newSnapshot := h.config.NewSnapshotName()
newSnapshotPath := filepath.Join(h.config.mirrorSnapshotDir, newSnapshot)
relativePath, err := filepath.Rel(h.config.mirrorServeDir, newSnapshotPath)
relativePath, err := filepath.Rel(filepath.Dir(h.config.mirrorServeDir), newSnapshotPath)
if err != nil {
return err
}
Expand Down

0 comments on commit af5835d

Please sign in to comment.