diff --git a/password.go b/password.go index 9d5e49b..f70678e 100644 --- a/password.go +++ b/password.go @@ -55,7 +55,7 @@ func (c *Cli) SetPass(user, passwd string) error { if bin, err := exec.LookPath("pass"); err == nil { in := bytes.NewBufferString(fmt.Sprintf("%s\n%s\n", passwd, passwd)) out := bytes.NewBufferString("") - cmd := exec.Command(bin, "insert", fmt.Sprintf("GoJira/%s", user)) + cmd := exec.Command(bin, "insert", "--force", fmt.Sprintf("GoJira/%s", user)) cmd.Stdin = in cmd.Stdout = out cmd.Stderr = out diff --git a/t/.gnupg/random_seed b/t/.gnupg/random_seed index 30fb62c..976b155 100644 Binary files a/t/.gnupg/random_seed and b/t/.gnupg/random_seed differ diff --git a/t/.password-store/GoJira/mothra.gpg b/t/.password-store/GoJira/mothra.gpg index 0b3e7e3..57c061b 100644 Binary files a/t/.password-store/GoJira/mothra.gpg and b/t/.password-store/GoJira/mothra.gpg differ