Skip to content

Commit d5a2c3b

Browse files
committed
force password in case password already exists
1 parent 46185a6 commit d5a2c3b

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

password.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (c *Cli) SetPass(user, passwd string) error {
5555
if bin, err := exec.LookPath("pass"); err == nil {
5656
in := bytes.NewBufferString(fmt.Sprintf("%s\n%s\n", passwd, passwd))
5757
out := bytes.NewBufferString("")
58-
cmd := exec.Command(bin, "insert", fmt.Sprintf("GoJira/%s", user))
58+
cmd := exec.Command(bin, "insert", "--force", fmt.Sprintf("GoJira/%s", user))
5959
cmd.Stdin = in
6060
cmd.Stdout = out
6161
cmd.Stderr = out

t/.gnupg/random_seed

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)