force password in case password already exists

This commit is contained in:
Cory Bennett
2016-12-18 15:53:00 -08:00
parent d187eee826
commit 989c072b94
3 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -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
Binary file not shown.
Binary file not shown.