refactor: less quotes

This commit is contained in:
decentral1se 2021-12-22 13:55:22 +01:00
parent 0dc8425a27
commit 327c5adef2
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 4 additions and 4 deletions

View File

@ -246,12 +246,12 @@ func installDocker(c *cli.Context, cl *dockerClient.Client, sshCl *ssh.Client, d
if err := survey.AskOne(prompt, &sudoPass); err != nil {
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 {
return err
}
} 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 {
return err
}
@ -428,12 +428,12 @@ You may omit flags to avoid performing this provisioning logic.
ArgsUsage: "<domain> [<user>] [<port>]",
Action: func(c *cli.Context) error {
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)
}
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)
}