consistent remote option set

This commit is contained in:
Pavel Vorobyov
2019-09-24 12:22:24 +03:00
parent 233b06de4c
commit 3ff1f17faf
2 changed files with 6 additions and 7 deletions

View File

@@ -318,10 +318,8 @@ func (c *Cli) doexec(mode execMode, argsLine string) {
}
c.acquirePasswd()
cmd := string(rest)
remote.SetUser(c.user)
remote.SetRaise(c.raiseType)
remote.SetPassword(c.raisePasswd)
cmd := string(rest)
if c.execConfirm {
fmt.Printf("%s\n", term.Yellow(term.HR(len(cmd)+5)))