mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-18 20:23:28 +02:00
force password in case password already exists
This commit is contained in:
+1
-1
@@ -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.
Reference in New Issue
Block a user