fix: server/record improved output + interactivity
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -391,7 +391,7 @@ You may omit flags to avoid performing this provisioning logic.
|
||||
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'")
|
||||
internal.ShowSubcommandHelpAndError(c, err)
|
||||
}
|
||||
@ -403,7 +403,10 @@ You may omit flags to avoid performing this provisioning logic.
|
||||
return nil
|
||||
}
|
||||
|
||||
domainName := internal.ValidateDomain(c)
|
||||
domainName, err := internal.ValidateDomain(c)
|
||||
if err != nil {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
|
||||
if err := createServerDir(domainName); err != nil {
|
||||
logrus.Fatal(err)
|
||||
|
Reference in New Issue
Block a user