forked from coop-cloud/abra
refactor: less quotes
This commit is contained in:
parent
0dc8425a27
commit
327c5adef2
|
@ -246,12 +246,12 @@ func installDocker(c *cli.Context, cl *dockerClient.Client, sshCl *ssh.Client, d
|
||||||
if err := survey.AskOne(prompt, &sudoPass); err != nil {
|
if err := survey.AskOne(prompt, &sudoPass); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
logrus.Debugf("running '%s' on %s now with sudo password", cmd, domainName)
|
logrus.Debugf("running %s on %s now with sudo password", cmd, domainName)
|
||||||
if err := ssh.RunSudoCmd(cmd, sudoPass, sshCl); err != nil {
|
if err := ssh.RunSudoCmd(cmd, sudoPass, sshCl); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logrus.Debugf("running '%s' on %s now without sudo password", cmd, domainName)
|
logrus.Debugf("running %s on %s now without sudo password", cmd, domainName)
|
||||||
if err := ssh.Exec(cmd, sshCl); err != nil {
|
if err := ssh.Exec(cmd, sshCl); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -428,12 +428,12 @@ You may omit flags to avoid performing this provisioning logic.
|
||||||
ArgsUsage: "<domain> [<user>] [<port>]",
|
ArgsUsage: "<domain> [<user>] [<port>]",
|
||||||
Action: func(c *cli.Context) error {
|
Action: func(c *cli.Context) error {
|
||||||
if c.Args().Len() > 0 && local || !internal.ValidateSubCmdFlags(c) {
|
if c.Args().Len() > 0 && local || !internal.ValidateSubCmdFlags(c) {
|
||||||
err := errors.New("cannot use '<domain>' and '--local' together")
|
err := errors.New("cannot use <domain> and --local together")
|
||||||
internal.ShowSubcommandHelpAndError(c, err)
|
internal.ShowSubcommandHelpAndError(c, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if sshAuth != "password" && sshAuth != "identity-file" {
|
if sshAuth != "password" && sshAuth != "identity-file" {
|
||||||
err := errors.New("--ssh-auth only accepts 'identity-file' or 'password'")
|
err := errors.New("--ssh-auth only accepts identity-file or password")
|
||||||
internal.ShowSubcommandHelpAndError(c, err)
|
internal.ShowSubcommandHelpAndError(c, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue