Skip to content

Commit

Permalink
Merge pull request vwxyzjn#40 from testwill/typo
Browse files Browse the repository at this point in the history
fix: typo
  • Loading branch information
vwxyzjn authored Sep 18, 2023
2 parents f4e67d7 + 05a2cfd commit 69a0337
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/portwarden/portwarden.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func BWUnlockVaultToGetSessionKey() (string, error) {
cmd.Stdin = os.Stdin

if err := cmd.Start(); err != nil {
fmt.Println("An error occured: ", err)
fmt.Println("An error occurred: ", err)
}
cmd.Wait()
sessionKey, err := portwarden.ExtractSessionKey(stdout.String())
Expand Down
6 changes: 3 additions & 3 deletions core.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func RestoreBackupFile(fileName, passphrase, sessionKey string, sleepMillisecond
cmd.Stderr = &stderr
cmd.Stdin = os.Stdin
if err := cmd.Run(); err != nil {
fmt.Println("An error occured: ", err)
fmt.Println("An error occurred: ", err)
spew.Dump(stdout, stderr)
}
fmt.Println("restoring folder", item.Name)
Expand Down Expand Up @@ -250,7 +250,7 @@ func RestoreBackupFile(fileName, passphrase, sessionKey string, sleepMillisecond
cmd.Stderr = &stderr
cmd.Stdin = os.Stdin
if err := cmd.Run(); err != nil {
fmt.Println("An error occured: ", err)
fmt.Println("An error occurred: ", err)
spew.Dump(stdout, stderr)
}
fmt.Println("restoring item", item.Name)
Expand Down Expand Up @@ -284,7 +284,7 @@ func RestoreBackupFile(fileName, passphrase, sessionKey string, sleepMillisecond
cmd.Stderr = &stderr
cmd.Stdin = os.Stdin
if err := cmd.Run(); err != nil {
fmt.Println("An error occured: ", err)
fmt.Println("An error occurred: ", err)
spew.Dump(stdout, stderr)
}
fmt.Println("restoring item's attachment", item.Name, innerItem.FileName)
Expand Down

0 comments on commit 69a0337

Please sign in to comment.