Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
folbricht committed Sep 21, 2024
1 parent 0aef76d commit 72ac91a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/desync/tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ By default, input is read from local disk. Using --input-format=tar,
the input can be a tar file or stream to STDIN with '-'.
`,
Example: ` desync tar documents.catar $HOME/Documents
desync tar -i -s /path/to/local pics.caibx $HOME/Pictures`,
desync tar -i -s /path/to/local pics.caidx $HOME/Pictures`,
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
return runTar(ctx, opt, args)
Expand Down
2 changes: 1 addition & 1 deletion mtreefs.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (fs MtreeFS) CreateFile(n NodeFile) error {
if _, err := io.Copy(h, n.Data); err != nil {
return err
}
attr = append(attr, fmt.Sprintf("sha56digest=%x", h.Sum(nil)))
attr = append(attr, fmt.Sprintf("sha256digest=%x", h.Sum(nil)))
default:
return fmt.Errorf("unsupported mtree hash algorithm %d", Digest.Algorithm())
}
Expand Down

0 comments on commit 72ac91a

Please sign in to comment.