forked from toolshed/abra
		
	refactor: less quotes
This commit is contained in:
		@ -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)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user