fixes trailing slash on DRONE_SERVER env variable
This commit is contained in:
parent
5bac61dc4b
commit
27ee06a53b
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ import (
|
|||
|
||||
func newClient(c *cli.Context) (client.Client, error) {
|
||||
var token = c.GlobalString("token")
|
||||
var server = c.GlobalString("server")
|
||||
var server = strings.TrimRight(c.GlobalString("server"), "/")
|
||||
|
||||
// if no server url is provided we can default
|
||||
// to the hosted Drone service.
|
||||
|
|
Loading…
Reference in a new issue